hi! I have another question, when I call the "
intersect object" does not work, I rarely returns a value, the same value that returned "
object size", the value is always the same "
-1.#IND" I do something wrong, but know that ... this is part of my code:
...
typedef float(__cdecl *tObjectPositionY)(int);
tObjectPositionY ObjectPositionY=0; //WORK
typedef float(__cdecl *tObjectPositionZ)(int);
tObjectPositionZ ObjectPositionZ=0; //WORK
//typedef float(__cdecl *tObjectSizeY)(int);
//tObjectSizeY ObjectSizeY=0; NO WORK
typedef float(__cdecl *tIntersectObject)(int,float,float,float,float,float,float);
tIntersectObject IntersectObject=0; //NO WORK
typedef void(__cdecl *tPositionCamera)(float,float,float);
tPositionCamera PositionCamera=0; //WORK
typedef void(__cdecl *tPointCamera)(float,float,float);
tPointCamera PointCamera=0; //WORK
...
...
ObjectPositionY=(tObjectPositionY)GetProcAddress(g_pGlob->g_Basic3D ,"?GetYPosition@@YAMH@Z");
ObjectPositionZ=(tObjectPositionZ)GetProcAddress(g_pGlob->g_Basic3D ,"?GetZPosition@@YAMH@Z");
//ObjectSizeY =(tObjectSizeY )GetProcAddress(g_pGlob->g_Basic3D ,"?GetYSizeEx@@YAKHH@Z");
IntersectObject=(tIntersectObject)GetProcAddress(g_pGlob->g_Basic3D ,"?IntersectObject@@YAKHMMMMMM@Z"); //NOWORK
// CAMARA
PositionCamera =(tPositionCamera )GetProcAddress(g_pGlob->g_Camera3D ,"?Position@@YAXMMM@Z");
PointCamera =(tPointCamera )GetProcAddress(g_pGlob->g_Camera3D ,"?Point@@YAXMMM@Z");
...
one of my functions use
maths in this case "
sin" and "
cos" (math.h), with
degrees, funny or not, the result of "
sin" of the DBpro is different, and I had to remedy that divide by
57.3 degrees so that the result was equal to that of DB ... why that?
And to end, once compiled does not work "
strupr" (no
strup) and "
free", the DB application is broken, so I left my code as before ... thank you and look forward to an answer.