P
Peter Piry
hi,
I've writte a DLL in VB.NET which is called from VB6.
When I try to call some methods of the DLL in a sub Procedure I get the following error: "Object reference not set to an instance of
an object."
this is my code in VB6 (simplified)
Sub Main
Dim myDLL as new Wrapper.Wrapper
'this works
myDLL.CallMethod
End Sub
But when i try this, I get an error:
Sub Main
Dim myDLL as new Wrapper.Wrapper
Call callMethodFromDLL
End Sub
Sub callMethodFromDLL(ByRef myDLL as Wrapper.Wrapper)
'here i get the error
myDLL.CallMethod
End Sub
Has anyone an idea?
br
Peter
I've writte a DLL in VB.NET which is called from VB6.
When I try to call some methods of the DLL in a sub Procedure I get the following error: "Object reference not set to an instance of
an object."
this is my code in VB6 (simplified)
Sub Main
Dim myDLL as new Wrapper.Wrapper
'this works
myDLL.CallMethod
End Sub
But when i try this, I get an error:
Sub Main
Dim myDLL as new Wrapper.Wrapper
Call callMethodFromDLL
End Sub
Sub callMethodFromDLL(ByRef myDLL as Wrapper.Wrapper)
'here i get the error
myDLL.CallMethod
End Sub
Has anyone an idea?
br
Peter