I had a simple mathequation that I thought I might speed up using a Win32 DLL but its returning a different value than in VB (the one that I hoped for). Heres the code in VB (the one that works) and the code in C++ (which returns a bad value):
Code:
Dim y As Integer = CInt(arY + (((arHeight - crdHeight) / NumCards) * crdNum))
Code:
//C++ VS 2003
return arY + (((arHeight - crdHeight) / NumCards) * crdNum);