[Wine] Re: Winelib Calling POSIX function from Windows application

milasudril wineforum-user at winehq.org
Sun Jan 16 13:29:37 CST 2011


Thunderbird wrote:
> Something like this works:
> winegcc -m32 -shared -o test.dll test.c test.spec
> 
> The file test.spec has to export your functions e.g:
> @ stdcall myFunction(ptr long)
> 
> The test.c file in this case has lets say the prototype:
> void WINAPI myFunction(void *some_pointer, int value)
> (Note the calling convention is critical; for int/long/float you use long in the spec file, for any pointer, obviously ptr)


Thanks! That explanation was better than the much longer Winelib tutorial. Calling conventions: How do I use long long and double?







More information about the wine-users mailing list