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 / Visual Basic Express DLL to DBPro

Author
Message
Kenjar
19
Years of Service
User Offline
Joined: 17th Jun 2005
Location: TGC
Posted: 4th Jun 2007 14:05
Hi, I've written a number of functions into a DLL file in Visual Basic 2005 Express, but I'm having difficulty understanding how to access these functions from DarkBASIC Professional. Does anyone know how to intergrade a VB 2005 made DLL into DarkBASIC Professional?
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 4th Jun 2007 14:35
Use Cattlerustler's .NET to DBP plug-in.
Works a treat on CLR code (which VB8 outputs by default), alternatively I believe he also has one for the old COM code output as well.

John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 4th Jun 2007 15:21
You can't access them directly.

Styx has the ability to load .Net/COM dll's.

Alternatively, you can round trip the MSIL to make it work as a standard dll albeit managed. There is a tool around that someone made that does this automatically, you can do it manually with a bit of work. Research 'Reverse P/Invoke'.

Get the new DarkBasic Professional IDE for only $19.99/~£9.85
Http://synergyide.thegamecreators.com
Http://www.digitalzenith.net

Login to post a reply

Server time is: 2024-11-22 21:41:50
Your offset time is: 2024-11-22 21:41:50