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.

DarkBASIC Discussion / creating and using dll's

Author
Message
Red Giant 2183
22
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 18th Apr 2003 10:12
ok for those interesting in doing their functions in C++ and using dll's without spending a bundle of $$ on a new compiler, here is what you do , goto : http://www.borland.com and download their free windows compiler, then after you've installed, make a source code file with extension .cpp, which we will call test.cpp , then write your functions in it. for example, :



now , to actually make this into a dll (and remember , c++ is case sensitive lol )
you open a command prompt, and navigate to the folder using command promps and then type in bcc32 -WD test.cpp {asumming the file named is test.cpp }
now assuming that you actually typed the wd in caps (again c++ is case sensitive including the commands for the compiler) ,and there are no errors in your code, then you just made a dll thats compatible with dark basic, now , to access the functions in your dll, you will need to know what the functions export as. and here is how you do that : the next thing you would type is :
impdef list.txt test.dll
this will create a text doc with the names of the function , which you could then access from a dark basic program.
cheers~
RGteam~

Login to post a reply

Server time is: 2025-05-16 12:07:13
Your offset time is: 2025-05-16 12:07:13