Re: Procedure called with not enough arguments (4bytesmissing) or wrong calling convention
Victor Blomqvist <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
I just wanted to say that I found a solution, compiling the library with the option -mrtd to make gcc use stdcall instead of cdel as calling convention did the trick (and ofc change from cdll to windll in my pyhton code). A forum user at another forum pointed out that cdecl is a bit ambiguous (wikipedia: http://en.wikipedia.org/wiki/X86_calling_conventions ) and apparently ctypes doesnt expect the same thing as gcc produce.. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ ctypes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ctypes-users