Well, I know some people would like to see this (CattleRustler
) and I think I may have got it working. I need to test it on some other machines though to make sure, here's the download:
http://ep.designex.net/Misc/VBDLL.zip
Please run that DBP application and tell me the messages that popup, you should get:
"Hello World" (From C++) and "VB ActiveX DLL" (From VB)
However, if the second message says "Creation Failed", then something went horribly, horribly wrong and I have to fix it.
So how's it work? Basically it allows you to write an ActiveX DLL in Visual Basic and then wrap it in C++. Of course, it's not as simple as just recompiling the C++ DLL with the new VB DLL name in it. You must rewrite the function names in C++ and the string tables so you must have at least some C++ knowledge (although very minimal) to get it to work correctly.
Of course, I'll put out a tutorial on how to do all this as soon as I get some feedback on wether the above application works. Otherwise I'm not going to waste my time explaining how to do something that doesn't work.
Anyway, I'd love for a couple people to test it out. Cheers.
Edit: I think I fixed any problems it may or may not have had. Anyway, the zip will come packaged with: VBDLL.exe, prjdll.dll and reg.bat - Please test the exe, if it comes up with "Creation Failed" then please run "Reg.bat" and retry the exe. This time it should work.
This is sort of a downfall though because it means the VB DLL must be registered to work, I suspected this would be the case but it means you'll have to register it manually with your DBP app/game or with a setup file that does it (I know some free setup generators have the option to do this).
"Computers are useless they can only give you answers."