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 / My first post - still waiting for the goodies but...

Author
Message
Time Runner
23
Years of Service
User Offline
Joined: 3rd Jun 2003
Location: Belgium
Posted: 3rd Jun 2003 12:58
I already have a question. Can DBPro compile DLLs too ? If not are
there any plans to support that ?

Thanks for the reply

Time Runner
Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 3rd Jun 2003 13:28
No, I as far as I know anyways, however you can call functions from them, for example, you can write a .dll in c++ and compile it in something like Visual C++, then in your actual DB code you can manipulate the .dll file.

I think that's how it is anyways.

Welcome to DB Time Runner.

I hear and I forget. I see and I remember. I do and I understand.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 3rd Jun 2003 14:56
well technically it could compile DLLs... but you'd need to program the compiler yourself probably add it in as a preprocessor compiler.

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jun 2003 15:25
You can get around it by using IanM's DLL to do the main code in a C/Pascal/whatever DLL, and just use the DBPro DLL's to do the graphics.

That way you can do a DLL...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Time Runner
23
Years of Service
User Offline
Joined: 3rd Jun 2003
Location: Belgium
Posted: 3rd Jun 2003 19:11
Hi everybody,

My idea would be to have a splash screen of my application doing some
special effects written in DBP but I don't see how. A DLL compiler needs to export its function so an executable can call them. There are some slight differences in an exe compiler and an dll compiler.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 4th Jun 2003 01:21
Create a DBP exe with your splashscreen and call it splash.exe. At the end of your splash.exe code you call EXECUTE FILE mainapp.exe

Easy

Exes and DLLs are quite different. Basically Exes are self-initialising, but DLLs have to be loaded and called by another exe. It wouldn't be 5 minutes work to make a DLL compiler. Interestingly though, an exe can export functions like DLLs IIRC (not absolutely sure on this). Maybe the easiest option would be to have DBP create the exes as normal but have a flag to export a function:

function myfunction(varA,varB) export
'Do stuff
endfunction result

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 4th Jun 2003 05:15
Altough I believe that MrTAtoad has a nice Splash Screen DLL on his website, in his link .

Enjoy!

--Mouse

Famous Fighting Furball
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 4th Jun 2003 11:18 Edited at: 4th Jun 2003 11:18
I do indeedly..

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2026-07-11 14:56:33
Your offset time is: 2026-07-11 14:56:33