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.

DLL Talk / What in the world is a DLL?

Author
Message
bjdgames
20
Years of Service
User Offline
Joined: 2nd Aug 2004
Location: In a galaxy far, far away...
Posted: 31st Oct 2004 06:00
What in the world is a DLL?
I am rather very new to the world of programming in darkbasic.
I have programmed in many other languages like visual basic and c++. Is a DLL something just for darkbasic or is it for any languages.








Did I misspell languages?

bjdgames
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 31st Oct 2004 06:04
you've programmed in c++ but never come accross a dynamic link library? look round your computer and you will find many dlls (user32.dll and kernel32.dll to name 2)

dlls can be written in c++, infact the majority that you find round here are written in c++ (some are written in asm)

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2ghz, 512mb, geforce fx5200 128mb, 200gb, xp pro sp2
bjdgames
20
Years of Service
User Offline
Joined: 2nd Aug 2004
Location: In a galaxy far, far away...
Posted: 31st Oct 2004 06:06 Edited at: 31st Oct 2004 06:08
Thanks but that still does not answer my question. What is a dll used for? Also I have programmed in C++ but just a little.

bjdgames
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 31st Oct 2004 06:18
a dll is used (in dbpro) to add more functionality to the program, but dll's can be used for anything

what c++ compiler are you using?

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2ghz, 512mb, geforce fx5200 128mb, 200gb, xp pro sp2
Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 31st Oct 2004 09:24
You can think of a DLL as merely a set of compiled functions. The concept behind DLL's is to bundle these sets of related functions into shared a resource, so the functions provided (in a dll) can be reused by other programs rather than being 'built' into a program.

Kevin Picone
[url]www.underwaredesign.com[/url]
Play Nice! Play Basic - Next generation 2D Basic (Release V1.00 Out Now)
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 31st Oct 2004 10:00 Edited at: 31st Oct 2004 10:01
A DLL is a library of compiled code which other applications can use.

For example, when an application needs to get the time, it will call a function stored in Windows' core DLL library (kernel32.dll)

DLLs can be written in many different languages - and there are various standards which enable DLLs written in different languages to communicate with each other, for DBPro, DLLs written in C++ or Delphi are the most common. In the same way that Windows applications all use the same EXE file format, all DLLs will use a certain format.

In DBPro terms, a DLLs provide a way of adding new commands to the language. You place the .dll file in the <DBPro Program Folder>CompilerPlugins-user folder, and any new commands it contains instantly become available to use in your DBA source code.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 31st Oct 2004 16:48
okay your posts explain what a dll is much better

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2ghz, 512mb, geforce fx5200 128mb, 200gb, xp pro sp2
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 31st Oct 2004 17:01
in fact, we can use an "image"
A dll is like a dictionary where you can find definition for words

bjdgames
20
Years of Service
User Offline
Joined: 2nd Aug 2004
Location: In a galaxy far, far away...
Posted: 1st Nov 2004 05:10 Edited at: 1st Nov 2004 05:11
Thanks guys that helped a lot! Can dlls be written in DarkBasic Classic? Call dlls be used in DarkBasic Classic?

bjdgames
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 1st Nov 2004 05:46
you can write them in c++ and use them in darkbasic classic

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 1st Nov 2004 06:02
you can write em in a myriad of langages, and use em in dbc and dbp


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 2nd Nov 2004 01:20
but dlls can not be written in dbc or dbpro

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2ghz, 512mb, geforce fx5200 128mb, 200gb, xp pro sp2
bjdgames
20
Years of Service
User Offline
Joined: 2nd Aug 2004
Location: In a galaxy far, far away...
Posted: 7th Nov 2004 06:24
What command do you use in DarkBasic Classic to call a DLL?

bjdgames
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 7th Nov 2004 06:41
A programming file


- Shoot 'Em Down! -
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 7th Nov 2004 06:57 Edited at: 7th Nov 2004 06:58
DarkBASIC Classic, as far as I know, doesn't have a command to call dll's.Look at the DarkBASIC Classic/DarkBASIC Proffesional comparison chart on the DBP main page.


Click the sig
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 7th Nov 2004 08:23
I thought DBCE could use dll's?


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Nov 2004 09:21
DBCE can yes, but not DBC regular or Trial

Song of the whenever i feel like updating it....
Where dead bullies go, by Sugarplastic
bjdgames
20
Years of Service
User Offline
Joined: 2nd Aug 2004
Location: In a galaxy far, far away...
Posted: 14th Nov 2004 04:06 Edited at: 14th Nov 2004 04:07
Thats right. I looked at the help.

bjdgames

Login to post a reply

Server time is: 2024-11-21 14:34:47
Your offset time is: 2024-11-21 14:34:47