J
John Dann
One detail about using DLLImports as part of the PInvoke process that
I don't understand:
I'm trying to access a function (eg MyFunction) in a 3rd party DLL so
I create a class:
Imports System.Runtime.InteropServices
Public Class Myclass
<DllImport("MyDLL")> _
Public Shared Function MyFunction()
End Function
End class
Then is there some way of calling MyFunction from within Myclass?
The only way I can get it to work at present is to instantiate Myclass
in another class and then call MyFunction via oMyclass.MyFunction.
JGD
I don't understand:
I'm trying to access a function (eg MyFunction) in a 3rd party DLL so
I create a class:
Imports System.Runtime.InteropServices
Public Class Myclass
<DllImport("MyDLL")> _
Public Shared Function MyFunction()
End Function
End class
Then is there some way of calling MyFunction from within Myclass?
The only way I can get it to work at present is to instantiate Myclass
in another class and then call MyFunction via oMyclass.MyFunction.
JGD