Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Writing a DBP DLL using MinGW C/C++ compiler?

Author
Message
Twisted Steel Software
16
Years of Service
User Offline
Joined: 21st May 2007
Location: Teh Interwebs
Posted: 26th Oct 2008 02:50
Hey all,
I'm trying to use my preferred editor and compiler to make a DBP compatible DLL, anyone know what to follow to get it working?

Meh... The Speed doesn't make Comcast good...
Twisted Steel Software
16
Years of Service
User Offline
Joined: 21st May 2007
Location: Teh Interwebs
Posted: 26th Oct 2008 17:40
Anyone...?

Meh... The Speed doesn't make Comcast good...
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Oct 2008 23:44
Well, you can make a plug-in using GCC (done it myself some years back), but then again, why make life difficult for yourself.

However, here's a link where I posted some of the differences (http://forum.thegamecreators.com/?m=forum_view&t=63390&b=18) - apart from that, the basic details are identical to using VC++ and can be found in the DBPro help files.

Twisted Steel Software
16
Years of Service
User Offline
Joined: 21st May 2007
Location: Teh Interwebs
Posted: 27th Oct 2008 05:11
Wow... I just gave it a shot blindly and it worked o.O. Only issue is running DBP commands from the DLL... Do I load in the dbprocore.dlls and such? I've never loaded a DLL in C++ ever...

Meh... The Speed doesn't make Comcast good...
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Oct 2008 15:16
Google LoadLibrary and GetProcAddress - you'll need to be comfortable with function pointers.

Twisted Steel Software
16
Years of Service
User Offline
Joined: 21st May 2007
Location: Teh Interwebs
Posted: 28th Oct 2008 02:48
Isn't there some import library available?... Maybe I seen one in Aaron Miller's plugin SDK?

Meh... The Speed doesn't make Comcast good...
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Oct 2008 15:04
Yes, that should work for you - I'm not sure if he still supports it for gcc, but it's worth a try.

Login to post a reply

Server time is: 2024-04-25 05:23:26
Your offset time is: 2024-04-25 05:23:26