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 / Combining C++ with Darkbasic

Author
Message
Shady Games
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location:
Posted: 1st Mar 2004 21:10
I was wondering if I made some code in C++ could I bring it over to darkbasic and if so how.
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 1st Mar 2004 21:14
you could but you can only access/run it through a .dll

Shady Games
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location:
Posted: 1st Mar 2004 21:17
If possible could you explain it a little clearer. Sorry to be a pain but the user manual I have doesn't cover anything like that.
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 1st Mar 2004 23:51
I assume you have dark basic (classic) and not pro... if you bought dark matter you should have it's latest version since the update was on the CD (or maybe from other sources). The update added some new DLL (dynamic link library) commands:

- load DLL
- delete DLL
- call DLL

you can write a DLL using C++, then load the DLL into your dark basic project and call any function you previously wrote in C++ within that DLL. You will have to learn how to make DLL's though, check out ianM's site, there should be something useful in there to get you started out.

Shady Games
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location:
Posted: 2nd Mar 2004 00:48
thanks. I want to test something I have.
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 2nd Mar 2004 01:53
There is also a section in c:\program files\dark basic software\dark basic in a folder called "Your Own Commands". I'm guessing that's the dll section you're looking for.

Crazy Donut Productions
Current Project: KillZone
Shady Games
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location:
Posted: 2nd Mar 2004 02:30
Now if the dll uses classes how do you handle that?

Login to post a reply

Server time is: 2025-05-22 18:58:36
Your offset time is: 2025-05-22 18:58:36