Using Dll visual basic in purebasic
Posted: Thu May 24, 2007 9:17 am
Hello at all
Excuse my very bad english
When i was a young boy, i was not good at the school in english lessons
I regret now
I try to use a DLL visual basic in pure basic.
Use Dll Pure in VB works very good, but the opposite, I do not do this.
This is the code of the DLL VB (VbAddition.dll)
This is the code of the executable Pure
Thank you very much for your help 
I wish you a good day
Excuse my very bad english
When i was a young boy, i was not good at the school in english lessons
I regret now

I try to use a DLL visual basic in pure basic.
Use Dll Pure in VB works very good, but the opposite, I do not do this.

This is the code of the DLL VB (VbAddition.dll)
Code: Select all
Public Function VbAddition(a, b)
MsgBox "Coucou"
VbAddition = a + b
End Function
Code: Select all
If OpenLibrary(0, "VbAddition.dll")
a = CallFunction(0, "VbAddition", 2, 3)
MessageRequester("Addition", Str(a), #MB_OK)
CloseLibrary(0)
Else
MessageRequester("Erreur", "La Dll VbAddition est absente", 0)
EndIf

I wish you a good day