Author Topic: [SOLVED] Using a DLL  (Read 8474 times)


Offline TheLastArrived

  • Single posting newcomer
  • *
  • Posts: 9
Re: [SOLVED] Using a DLL
« Reply #16 on: May 19, 2008, 04:51:13 pm »
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?)