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 / Force the comiler to include a DLL?

Author
Message
Dostej
22
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 25th Feb 2004 15:56
Hi out there
Is there a way to force DBpro (Compiler) to include one of the standard (internal) Dll´s? normally it happens when a command of the dll is used in the code.
Is there a way to include a dll, not used in the code?

GALACTIC X - A brief overview - http://www.angelfire.com/space2/galactix
also my IDE: jaPROe - the Image Enhance plugin and some snippets and tools -
Eddie Gordo
22
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 25th Feb 2004 16:01
Pardon my asking, but, why would you want to?

As for how to compile it without putting it in the code, i suppose this is possible but it would be easier to make a function with the code and then never call the function...

Do not EVER question my authority, respect me, i've ridden on the hood of a minivan going 95mph!...then when the driver stoped i jumped on the back...
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 25th Feb 2004 16:06
If you add it to the plugins folder, it might take it from there - however you should probably make a dummy function inside your .dll that is called, even if it's just a 'loaded ok' check because it would probably only add the .dlls that are used (like for 3D, for memblocks, for sound etc) and the basic .dll set (like for basic logic, memory handling).


Van-B


The nature of Monkey was irrepressible!.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 25th Feb 2004 16:15
Just include a command from a particular DLL in a section of the code which is never executed.

eg:

function neverRun()
..
..
endfunction


BlueGUI-Windows UI Plugin
Dostej
22
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 25th Feb 2004 18:00
Ok, that with the command in the code is not the newest thing (as I said in my first post...)

I want to know if there is an other way to do this...

GALACTIC X - A brief overview - http://www.angelfire.com/space2/galactix
also my IDE: jaPROe - the Image Enhance plugin and some snippets and tools -
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Feb 2004 18:33 Edited at: 25th Feb 2004 18:35
With IanM's Interface, he has a couple if DBPro examples, which have use a command from each of the different sections. I use that to make sure all the DLL's are used, specifically :



Then the call to the DLL goes before the END command


The place for all great plug-ins.
XP3000+,1Gb RAM,FX5600,1Mb ADSL,Router,.Net 2003 Pro & me
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Feb 2004 19:22
Currently the compiler has the DLL dependencies hard-coded - there is no way you can access these.

Mike did tell me that there is going to be a way for you to specify the dependencies for your DLL yourself, but he didn't tell me how that would work.

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
Dostej
22
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 26th Feb 2004 10:53 Edited at: 26th Feb 2004 11:06
@IanM
That was the information I looked for. As soon as Mike tell you how to... I´m eager to hear that. Thx a lot.

To code or not to be...
GALACTIC X - A brief overview - http://www.angelfire.com/space2/galactix also my IDE: jaPROe - the Image Enhance plugin and some snippets and tools -

Login to post a reply

Server time is: 2025-06-06 17:24:22
Your offset time is: 2025-06-06 17:24:22