Code:

//C++

//DLL function
DLLFUNC void dllTest (VECTOR* position)
{
char buffer [50];
int n;
n = (int)position->y;
n=sprintf (buffer, "%d", n);
error(buffer);
}



Please keep in mind that all a6/a7 objects are fixed point vars (21.10's I think, with a sign bit, I know for a fact int of 1024 = var 1.0 in engine). So it's best to convert them over in case you do any multiplication etc.


"Towlie, you're the worst character ever." I know...