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

