Using a PureBasicDLL in VB

Share your advanced PureBasic knowledge/code with the community.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

First you have to know how to declare correctly in VB:
For The Example DLL:
Declare Sub EasyRequester Lib "c:\Purebasic.dll" Alias "_EasyRequester" (ByVal Instring As String)

Note you have to use Alias while the underscore is in the FunctionName.

And call is easy with :

EasyRequester "Siggi is there !"

Thanx Fred for the DLL-Support, really good job, but the docs should been updated next time (also PackerCallback forgotten!)


Getting better with a little help from my friends....thx Siggi
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Thanks. About the docs, it will have a full update with 3.0. I hope :). Priority is now on Linux/Amiga versions (Finally). BTW, it's really easy to use dll in VB. I guess I should do a similar system. For future versions :).

Fred - AlphaSND
Post Reply