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 Discussion / Need help with DLLs

Author
Message
smartypants
21
Years of Service
User Offline
Joined: 27th Apr 2004
Location: At is computer
Posted: 9th Jul 2004 11:24
I know dlls can be used to make programs easyer to handle (I think).
But how do i make/use one? And any tips on makeing one would be nice to...

can any one help plz?

King of the asked question
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 10th Jul 2004 14:26
To make a DLL, traditionally you need to know how to use Dev-C++ or VC++.

And you need to know how to make DLL's in these languages also.

I would say that unless you have these skills, then it's best left to others for the mean-while.

But, don't be too scared, C isn't that hard, just takes a little bit to get used to it.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
zane
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: manchester, england
Posted: 10th Jul 2004 22:35
i do believe you can make them with visual basic as well, though i dont know if you could make them for db using vb.

www.zaneinteractive.uni.cc - my brand new site, check it out - NOW!!!!!
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 10th Jul 2004 22:42
DLLs can be used to add advanced features to your programs, and usually faster than native DB could do. Like Jess said, you'd have to go for C/C++ to write them. VB DLLs dont work in DBC as far as I know, unfortunately.

AMD Athlon XP2800+
GeForce FX5200 128MB
1024MB DDR 333MHz RAM
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 11th Jul 2004 01:13
Yeah, it's possible to make DLL's in plenty of languages, some aren't even heard of.

But, DBC only recognises Dev-C++ or VC++ DLL's unfortunatly.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 11th Jul 2004 03:59 Edited at: 11th Jul 2004 04:00
Quote: "But, DBC only recognises Dev-C++ or VC++ DLL's unfortunatly."

And Delphi, FreePascal, PowerBasic and Purebasic DLLs


Basically there are two different kinds of DLLs:
1) standard DLL (the ones that you can use with DBC)
2) ActiveX/COM DLLs (the only form of DLLs that VB can produce, but DBC cannot use)

Play Nice! Play Basic! Check it out. Now.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 11th Jul 2004 13:04
Yeah?

Well, that's nice to know. I thought it was only those two that it could take.
I'll be sure to remember that for next time this is asked.

Thanks empty

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 11th Jul 2004 19:40
CR and Exeat made a DBP C++ dll wrapper for a VB dll. Has anyone tried to see if that trick works in DBC as well?

empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 11th Jul 2004 21:21 Edited at: 11th Jul 2004 21:38
Quote: "Well, that's nice to know. I thought it was only those two that it could take.
I'll be sure to remember that for next time this is asked.

Thanks empty "

You're welcome.
Altough I forgot to mention that there are .NET DLLs as well.



Quote: "
CR and Exeat made a DBP C++ dll wrapper for a VB dll. Has anyone tried to see if that trick works in DBC as well?"

AFAIK the provided VB DLL (or actually .NET) doesn't work with DBC. However, the method used (a C++ wrapper) should work with DBC too. Provided you have a bit C++ knowledge.

I made a universal loader for DBC/pro that doesn't need any additional tools. I posted a working demo on the WIP boards a few months ago. I still haven't found the time to complete it, though, as currently it's a bit tedious to use.




EDIT:
Here's the link to the LLRGT board for details and download of my universal VB / .NET DLL loader:
http://www.dannywartnaby.co.uk/rgt/index.php?board=10;action=display;threadid=2664

And here's the link to Exeat's VB DLL C++ wrapper
http://forum.thegamecreators.com/?m=forum_view&t=26828&b=1

Play Nice! Play Basic! Check it out. Now.

Login to post a reply

Server time is: 2025-05-24 22:43:03
Your offset time is: 2025-05-24 22:43:03