On 1/23/2012 11:29 AM, Mars wrote:
On Sunday, 22 January 2012 at 23:23:23 UTC, Kapps wrote:2) Create the binding functions using extern(System).Oh man... that was the problem. The file I used was using extern(C). Thought that was okay, it's a C lib after all. Thank you! Mars
A number of libraries on Windows use a different calling convention. Any functions declared WINAPI or PASCAL in the C headers need to be declared either extern(Windows) or, if cross-platform, extern(System).
