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.

Newcomers DBPro Corner / what is a dll

Author
Message
The Master
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 6th Nov 2005 22:39
what is a dll?
Dgamer
22
Years of Service
User Offline
Joined: 30th Sep 2002
Location:
Posted: 6th Nov 2005 23:43 Edited at: 6th Nov 2005 23:44
Dynamic Link Library

It adds functionality to DB in the form of new commands.

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 7th Nov 2005 00:02
you asked what is a dll?
whell it is a file that containes parts of codes.
example : DIRECtX - dx9.dll
is a dll that makes possible work of programs such
as darkbasic for example.
it is an engines that enables game compiling and much more things.
you can write a dll and then use it in DB
if you know how , than using dll`s you can make your
game much better than you can only in db

ika
The Master
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 18th Dec 2005 00:02
can you make your own dll's?
Evil Booger
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: My evil lair
Posted: 18th Dec 2005 00:05
Yeah but in another language like C++.

boogers will take over the world
The Master
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 8th Jan 2006 19:50
so where do you put the dll's ?

Help is here
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 8th Jan 2006 20:24 Edited at: 8th Jan 2006 20:26
@The Master:

Stop spamming!!!

Quote: "so where do you put the dll's ?"


That depends on how you wanna use them... In DarkBasic you would put it in the user-plugins folder.... Or in the same folder as your exe.. etc...

But if the dll don't contain a string table, you would have to call the dll within your darkbasic program..

-The Nerd

Free Particle Engine for DarkBasic Pro:
http://forum.thegamecreators.com/?m=forum_view&t=60141&b=5
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 8th Jan 2006 21:48
How does one save a DLL?

Bluestar4
18
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 8th Jan 2006 23:01 Edited at: 8th Jan 2006 23:09
1.first you have to know a little about How to program in c++
2. you must check your compiler documentation (there are 100's of c compilers so I cant be speciffic ! ) on how to compile your C+ source file to a dll.
3. after you have compiled it into a dll, you must use another program (usually included in your compilers package as a utility or tool ) to export the list of dll functions from the dll to a readable file so that you actually know what to call in db.
4. once you have that list, you can simply load and call those functions.

here is a simple example :
in c file :

once you compile and make the dll , and retrieve the list of exports your dbc code should look something like this :



which when all said and done will simply print 33 to the screen.
cheers~

Bluestar4~

Attachments

Login to view attachments
super skull
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location: usa
Posted: 9th Jan 2006 02:53 Edited at: 9th Jan 2006 02:54
[edit] accidental post

Login to post a reply

Server time is: 2024-11-27 07:40:42
Your offset time is: 2024-11-27 07:40:42