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 Professional Discussion / using external dll's in final build?

Author
Message
Genesis Rage
22
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 26th Oct 2003 23:57
ive been looking in the forums, and cant really find the answer to this question... if you use a 3rd party dll in your program... when you compile it, do you need to distribute that file with your program?

if possible i would like to know how to internally include the file, and also externally use the file... IE have the demo game have it included (so only gamedemo.exe is needed to run)... and the full version have it external (incase of upgrades or such later on)

==Main Computer==
Athlon XP 3000+, 1024mb, Radeon 9800 Pro 128mb 8xAGP, XP Pro
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Oct 2003 00:14 Edited at: 27th Oct 2003 00:15
If it's a TPC DLL, then no, it is compiled into your exe.

If it's a normal DLL, then yes ... but there is a trick you can use to compile it into your exe as media.

Rename the external DLLs so that they end in a media-type suffix (I would use sgt, coz I don't know of anyone that uses this file type). Then you can just include the file as if it were a music file. You'll also need to change your code so that it also uses this suffix.

If you don't rename the file to a media type then DBPro won't include it in the exe.
Genesis Rage
22
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 27th Oct 2003 00:31
so for the demo concept...
rename it like 'dllfile.sgt' and make sure when loading the dll i tell it to load 'dllfile.sgt'...

and the full version concept...
just leave the name 'dllfile.dll' and have the dll included into the install program...

did i understand correctly? or did i mess something up?

==Main Computer==
Athlon XP 3000+, 1024mb, Radeon 9800 Pro 128mb 8xAGP, XP Pro
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Oct 2003 00:33
That's about it - personally, I wouldn't bother building a complete exe version. I'd just go with an installer
Genesis Rage
22
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 27th Oct 2003 00:35
really im not at that point to be needing this information... im just trying to learn as much now... so when i do need the information... i have it...

and thanks for the help

==Main Computer==
Athlon XP 3000+, 1024mb, Radeon 9800 Pro 128mb 8xAGP, XP Pro

Login to post a reply

Server time is: 2026-07-26 15:29:43
Your offset time is: 2026-07-26 15:29:43