Hi,
I have written some code to access my C++ DLL under my WPF application in C#.
In one of the Function of C++ has parameter HWND. I tried passing window handle by HwindowSource As well as windowinterophelper.
Both is not working in my case.
Plesae let me know how to pass HWND from WPF Appication in c#.
CODE:
C# ----->
[DllImport("dhnetsdk")]
public static extern long CLIENT_RealPlay(long lLoginID, int nChannelID,IntPtr hWnd);
C++
CLIENT_API LONG CALL_METHOD CLIENT_RealPlay(LONG lLoginID, int nChannelID, HWND hWnd);
Please let me know what is the equalant conversion for DLL import in c#.
Thanks in advance,