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 / I am Stupid aren't I

Author
Message
Shady Simpson
23
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 5th Apr 2003 13:22
Hi,

erm.... I am always reading the posts and I hear people talkin about " DLL's ".
em.... What exactly are they?

are they some kind of attatchment to enable you to do more complex things on DBPro?
Xoid
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location:
Posted: 5th Apr 2003 13:30
Hi,

DLL's (Dynamic Link Library) enable the programmer to extend or enhance your programs, for example, you could add a particular feature to DB PRO that wasn't in the package when you got it.

DLL is just a way to add more functionality to a program.

I'm never good at explaining things, but, i hope you get what I mean

Do not anticipate the outcome of the engagement, let nature take it's course, and your tools will strike at the right moment - from "Tao of Jeet Kune Do" by Bruce Lee
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 5th Apr 2003 14:44
Raven's DLL are called something else arn't they Raven *snicker*

Some programmers here, the better ones , are able to add extra commands to DBPro by writting .dll's.

For instance MrTAToad has written a command set to access SQL databases which is not supported by DBPro by default.

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
Shady Simpson
23
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 5th Apr 2003 15:20
ar right,

so how do you make them?

Do you have to be a super genius do them?

Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 5th Apr 2003 15:23
DBPro cannot make them, you'd likely use C++, Delphi or maybe even Pascal. For that reason only the better programmers here tend to make them as they are the ones who tend to program in multiple tools.

I regret saying that though, because i've excluded myself *sniff*

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 5th Apr 2003 15:26
"Do you have to be a super genius do them?"

Nope.

You need another programming package like Delphi or Visual C++ (I don't think that you can make DBP-compatible ones with DBP).

The kind of functionality that people have made DLLs for:

- Maths functions
- Zip Tools (Open / Extract data from Zip files)
- Get DirectX version no.

Delphi & Visual C++ provide DLL templates which can be used to write DLLs very quickly.

Essentially they are just libraries of code which you can use in other programs.

Here is the code from a (no its not yet finished) DLL that I am writing in Delphi:



^^ this adds Windows menus to DBP apps.

To use DLLs in DBP:

a) Either the DLL programmer adds extra info to the DLL so that you can use it just like a normal DBPro command, eg CreateMenu("apptitlegoeshere")

or...

b) Use the DLL functions:

LOAD DLL "menusdll.dll",1

CALL DLL 1,"CreateMenu","apptitlegoeshere"

Current Project: Retro Compo. Entry.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 5th Apr 2003 15:28 Edited at: 5th Apr 2003 15:31
oh yes, a much more simplistic DLL might look like:



Programs can also contain DLL-like functions as well, but that is quite rare, I am not sure exactly what has to be done to make a function remotely accessible but I don't think that it is much.

Current Project: Retro Compo. Entry.

Login to post a reply

Server time is: 2026-07-11 12:02:41
Your offset time is: 2026-07-11 12:02:41