I got a C++ function in a dll file:
HWND = Main window in the program using the dll
int Initialization (Int PortNum, HWND hWnd, HINSTANCE HInst) as integer
HINSTANCE = Instance in program using the dll
how can i include this function in VB.NET?? Is the following declaration correct?
If the declaration above is correct, how can i get the HWND and HINST in vb.net? Can i use:
<DLLImport ("DllName.dll")> Public Shared Function Initialization(ByVal PortNum As Integer, ByVal HWND as IntPtr, ByVal HInst as Int32)
How bout HInstance?? What is HInstance?
Dim HWND As IntPtr = Me.Handle
Hope somebody can help, thanks!