User forums > Using Code::Blocks
[SOLVED] Using a DLL
TheLastArrived:
--- Quote from: Michael on May 14, 2008, 11:28:47 am ---Hello,
also this links could be of some interest:
http://www.codeproject.com/KB/cpp/calling_conventions_demystified.aspx
http://www.unixwiz.net/techtips/win32-callconv.html
http://www.programmersheaven.com/2/Calling-conventions
http://www.devnewz.com/devnewz-3-20050125UsingWin32CallingConventions.html
http://blogs.msdn.com/oldnewthing/archive/2004/01/15/58973.aspx
http://en.wikipedia.org/wiki/X86_calling_conventions
Best wishes,
Michael
--- End quote ---
gasp, a lot to read... :roll:
Thank you Michael, very useful links :wink:
TheLastArrived:
Here I am, again :?
I thought I solved my problem but I was mistaken. Changing calling convention ain't a good idea, it get me a lot of segmentation errors (well I should know, shame on me :oops:).
So I found another way out,
* with pexports I create a .def file
* in the .def file I add a @nn decoration to each function by hand
* I create a import library with dlltool with the -k switch
Now it works but I've to do the step 2 by hand, do you know how I can get this done by some routine?
(yes, I know I could write down a routine by myself, but why bother if it already exists?)
Navigation
[0] Message Index
[*] Previous page
Go to full version