Have been searching and searching with no luck, so it's time so finally post.. Can anyone tell me how to call a vb.net dll in pure basic?
I made a vb.net dll in visual studio 2010 (file->new->project->class library)
It looks like this basically
Code: Select all
Public Class MyClass
Public Function test()
Return 12
End Function
End Class
And in pure basic, I can open the library fine... However, I cannot examine the functions.
Code: Select all
If OpenLibrary(0, "MyDll.dll")
Debug "Opened Library..."
returnValue = CallFunction(0, "test")
Debug "returnValue: " + Str(returnValue)
CloseLibrary(0)
EndIf
So that returnValue is 0 and I also get 0 when using ExamineLibraryFunctions. Seems like this should be simple, but I'm agitated beyond belief at the moment. Would really appreciate any help! Thanks for your time.