This is increasingly becoming a hot topic on these forums - "
How do I use my Visual Basic DLL in DarkBASIC Professional?" - There are several ways to achieve this, although, each have their pros and cons, I'll try to address as many as possible in this thread. Feel free to suggest other solutions if I've missed any out.
Manual DLL Creation
This is the messiest way to get your VB DLL running in DBP, feel free to hack up my source code and butcher it as much as you like. Incidentally, I'd love to see some significant improvements that may make this task simpler. I.e. If you find some shortcuts and optimisations, don't hesitate to email me or post a reply mentioning them.
Visual Basic 6
This is nasty. You'll require at least some C++ knowledge, VB6 DLL's make use of the COM Library and so are not very compatible with the C++ DLL's needed to create plugins. You'll need to create a C++ Wrapper DLL in addition to your regular VB DLL, although not an impossible task, it isn't a walk in the park either. In any case, I've personally created some samples and modified IanM's brilliant TPC Framework to make the creation of the C++ wrapper some-what easier than it previously was.
Advantages: Cost-Effective, allows you to create your own commands like a true TPC Plugin.
Disadvantages: Messy, requires intermediate C++ knowledge.
Sample: To be uploaded...
Framework:
http://ep.designex.net/Files/VB6-Framework.zip
Documentation: To be uploaded...
Visual Basic .NET
This is much easier to do than VB6 DLL's as VB.NET Data Types are easily converted to C++ .NET Data Types. In fact, the .NET Framework was created with the idea of cross-language interoperability in mind, this makes our job a lot easier. Once again, a C++ .NET Wrapper DLL is required, however, due to the simplicity of the .NET framework, this is much easier to create and is all but a no-brainer, just copy my source code and make the required changes.
Advantages: Cost-Effective, allows you to create your own commands like a true TPC Plugin.
Disadvantages: Minimal C++ knowledge required.
Sample:
http://ep.designex.net/Files/VB7-Sample.zip
Framework:
http://ep.designex.net/Files/VB7-Framework.zip
Third Party DLL's
Presumably could be related to the above method, however, most of the work has been done for you. Thsese DLL's will offer additional commands that will allow you to call Visual Basic functions within DBP.
Empty's VB DLL Library
This is a TPC Plugin itself that allows you to call VB functions in a method similar to the "Call DLL" command. It's very easy to use and appears to work flawlessly, it even works for both VB6 and VB.NET - amazing!
Note: Empty's download link appears to have disappeared, if someone could track it down, please let me know. Cheers.
Advantages: Easy to use, no other knowledge required, supports both VB6 and VB.NET!
Disadvantages: Doesn't create 'True' TPC Plugins.
Forum Thread:
http://www.dannywartnaby.co.uk/rgt/index.php?board=10;action=display;threadid=2664
DBP Download:
http://www.dannywartnaby.co.uk/rgt/attachments/dbpro.zip
DBC Download:
http://www.dannywartnaby.co.uk/rgt/attachments/dbc.zip
Third Party Applications
These are applications that assist in the creation of DLL's that will work with DBP, generally, they'll modify the VB DLL's themselves or change the VB Compiler's linker so the DLL is created differently.
ZKAT8IT's DBP VB.Net Converter
This modifies an already compiled VB.NET DLL so it can be used through the "Call DLL" function included in DBP. Although it hasn't been released at the time of writing, it currently looks like it will be easy to use and work a treat, might be worth checking out.
Advantages: Very easy to use, excellent customisability, no other knowledge required.
Disadvantages: Possibly Shareware? No VB6 support yet.
Forum Thread:
http://forum.thegamecreators.com/?m=forum_view&t=42944&b=8
The Winch's DLL Tool
Very similar to the above program but with slightly less features, however, since this one appears to be freeware, one can hardly complain.
Advantages: Very easy to use, no other knowledge required, freeware!
Disadvantages: No VB6 support yet.
Forum Thread:
http://forum.thegamecreators.com/?m=forum_view&t=44946&b=8
vbAdvance
This is a Visual Basic 6 plugin that modifies the Linker in the VB compiler to create standard DLL's as opposed to the regular COM-based ActiveX DLL's that VB6 produces, ironically, this was always an option in the VB compiler but it was disabled for some odd reason. This creates DLL's similar to what the C++ compiler would produce, as such, they can be used to create your own commands and an actual TPC Library. CattleRustler has kindly written a tutorial on how to effectively utilise vbAdvance, found under the 'Documentation' link below, thanks.
Advantages: Easy to use, no other knowledge required, creates true TPC Plugins.
Disadvantages: Full version costs $30. No VB.NET Support.
Website:
http://www.vbadvance.com/
Documentation:
http://forum.thegamecreators.com/?m=forum_view&t=42070&b=18
To Be Continued...
P.S. I want to clean up my source code before I upload them, should be ready tomorrow.

"Computers are useless, they can only give you christmasy answers."