xie jason wrote:
can any one help me?
Yes, it looks like you're using the wrong calling convention.
int add(int a, int b) { int (*pFunc)(int, int);
This should probably be "int (* __stdcall pFunc)(int, int);"
int retVal; pFunc=(void*)GetProcAddress(hDLL,"vgMath"); TRACE("((int)%ld,(int)%ld): forward\n",(LONG)a,(LONG)b); retVal = pFunc(a,b); TRACE("Returned (%ld)\n",(LONG)retVal); return retVal; } ------------------------.spec is -------------------- 1 stdcall add( long long ) vgMath