View Single Post
Re: Custom dll bot loading problem
Old
  (#2)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Custom dll bot loading problem - 06-07-2006

The Windows version of the HL engine like every version of VC++.
The problem probably come from the exporting of GiveFnptrsToDll i.e. from the file bot.def.
Better forget about that file and use the way that Jozef Wagner showed us.
Its better and less compicated.
Just add this code
Code:
// If we're using MSVC, we need to specify the export parameter (Thanks Jozef Wagner)...
#if _MSC_VER > 1000
#pragma comment(linker, "/EXPORT:GiveFnptrsToDll=_GiveFnptrsToDll@8,@1")
#pragma comment(linker, "/SECTION:.data,RW")
#endif
In h_export.cpp righ after the function DllMain.
Recompile and fun.
  
Reply With Quote