compiling simple windows app
Robert Shearman
rob at codeweavers.com
Wed Jan 3 19:04:15 CST 2007
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
>
>
--
Rob Shearman
More information about the wine-devel
mailing list