We have unmanaged 32bit c++ dll and we want to wrap it in COM code which is 64bit and written in VB.net. The unmanaged dll method has parameter with pointer datatype and we are not able to fetch required response from the methods. Also, code behind the dll is unknown
We have tried different types of datatypes in VB to match with C++ pointer datatype: WE tried - BYTE(), String, long, arraylist, intptr, uintptr, progress.open4GL.memptr, byte, integer etc..
This is how we import dll and parameters are (input string,input_output ptr,input_output ptr) and the return type is long. Issue is with ptr variables
<DllImport("wp2.dll")>
Public Shared Function WPStartJob(<MarshalAs(UnmanagedType.LPWStr)> typAvlista As String,
ByRef mPVariabelLista As IntPtr,
ByRef mPSubrapportLista As IntPtr) As Long
End Function
output of the method(for argument with pointer type) should be list of string values ex. "ListaS_Sub.rpt"
But we are getting null value with all types tried.