[squeak-dev] Re: [Q] FFI for Windows;
PASCAL(WINAPI) or C Calling convention?
Andreas Raab
andreas.raab at gmx.de
Mon Mar 23 03:47:10 UTC 2009
S.J.Chun wrote:
> I'd like to create a DLL for windows platform(Tokyo Dystopia based search tool). Now
> I found that there's 2 kind of calling convention in Windows. What convention
> should I follow to create DLL so that it could be called from Squeak using FFI?
If your DLL is Windows-only, use __stdcall (i.e., WINAPI). If you need
to port it to other platforms use __cdecl. Both can be called.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|