M
Michael
Newbie question
I am trying to access external code from within VB using DLLimport in the
form below where testsub is the procedure name within the DLL
<DllImport("MyDll.dll", EntryPoint:="testsub", SetLastError:=True, _
CharSet:=CharSet.Unicode, ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Sub _
Test(ByVal JOB As Char, ByRef A(,) as Double)
When calling the routine from VB.Net I keep on getting an "Object reference
not set to instance object" error
Have tried to register the DLL but can't and tblimp will not work either as
the code is created outside of VB net
Does anyone have any ideas on what the issue is and how to solve it. Any
references to articles on how to work with DLL's from within VB would also
be appreciated
Thanks
Mike
I am trying to access external code from within VB using DLLimport in the
form below where testsub is the procedure name within the DLL
<DllImport("MyDll.dll", EntryPoint:="testsub", SetLastError:=True, _
CharSet:=CharSet.Unicode, ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Sub _
Test(ByVal JOB As Char, ByRef A(,) as Double)
When calling the routine from VB.Net I keep on getting an "Object reference
not set to instance object" error
Have tried to register the DLL but can't and tblimp will not work either as
the code is created outside of VB net
Does anyone have any ideas on what the issue is and how to solve it. Any
references to articles on how to work with DLL's from within VB would also
be appreciated
Thanks
Mike