View Single Post
Re: question w/ botman's HLSDK patches for MinGW32.
Old
  (#4)
koraX
Member
 
koraX's Avatar
 
Status: Offline
Posts: 145
Join Date: Jan 2004
Location: Slovak Republic
Default Re: question w/ botman's HLSDK patches for MinGW32. - 16-02-2005

yes indeed

linky

well my thoughts about this problem

- if you export all functions with extern "C", you are fine.
- Hovever there is one nasty problem, and that is GiveFnptrsToDll()

GiveFnptrsToDll() must be exported with stdcall, not cdecl. However after exporting this as __stdcall, its name will be mangled so you need to specify .def file or use Microsofts #pragma hacks. Look at someones bots makefile to check how it is exported in mingw32

So look at givefnptrstodll and how it is exported.

I recommend nice program called PE explorer which can inspect and do some hacks to .dll files. However it is hard to find on internet


kXBot
koraX's utils
- see my homepage for other projects (OpenGL CSG Editor, FAT16 Sim, NNetwork Sim, ...)

Last edited by koraX; 16-02-2005 at 19:58..
  
Reply With Quote