Click here to Skip to main content
16,022,968 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi friends,
I've this functio which turn correctly
CLIENT_RealPlay(long loginID,int nChannelID,void* hWnd)


How can i use my window handle hwnd to show video ,
i use winForms project(C#)
Posted

Use this.Handle (or something like that).
 
Share this answer
 
Hi did you ever get this problem solved? I'm trying to call this method in C#

[DllImport(@"dhnetsdk.dll", CallingConvention = CallingConvention.Cdecl)]
protected static extern long CLIENT_RealPlay(long lLoginID, int nChannelID, IntPtr hWnd);

and pass a handle to a form or a picturebox from my C# window. I get a PInvokeStackImbalance when I call this method.



thanks
Tim
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900