显示影片 [英] show video

查看:73
本文介绍了显示影片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
我有这个功能,可以正确转动

Hi friends,
I''ve this functio which turn correctly

CLIENT_RealPlay(long loginID,int nChannelID,void* hWnd)



如何使用我的窗口手柄 hwnd 来显示视频,
我使用winForms project(C#)



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

推荐答案

使用this.Handle(或类似的东西).
Use this.Handle (or something like that).


嗨 你有没有解决这个问题?我正在尝试在C#中调用此方法

[DllImport(@"dhnetsdk.dll",CallingConvention = CallingConvention.Cdecl)]
受保护的静态外部long CLIENT_RealPlay(long lLoginID,int nChannelID,IntPtr hWnd);

并将句柄从我的C#窗口传递给表单或图片框.调用此方法时,我得到一个PInvokeStackImbalance.



谢谢
蒂姆
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


这篇关于显示影片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆