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 / Creating a Wrapper for 3rd Party functions

Author
Message
Kenjar
19
Years of Service
User Offline
Joined: 17th Jun 2005
Location: TGC
Posted: 7th Jun 2007 18:01
If I understand the process correctly now. The best way of getting a 3rd party DLL to work in DarkBASIC Professional, is to create a C++ DLL, that calls the third party DLL, and create a bunch of C++ functions that basically just reference the 3rd party functions. Stick all of the c++ functions into a resource.rc file and embed that file into the compiled c++ DLL file. Is that essentially correct?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Jun 2007 19:29
Essentially, yes. You may need to do some conversion or hold some behind-the-scenes data as well, but that's basically it.

Login to post a reply

Server time is: 2024-11-22 21:35:11
Your offset time is: 2024-11-22 21:35:11