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
Using a PureBasicDLL in VB
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm