System::IntPtr^ LiveViewClass::LiveView(System::Windows::Forms::Control wnd, String^ CameraIP, EventArgs e, int i){ System::IntPtr^ xyz; DisplayWnd^ l_hwnd = gcnew DisplayWnd();//is a usercontrol object //option 1: l_hwnd->Handle = wnd.Handle; //error here return l_hwnd->Handle; //option 2: xyz = wnd.Handle; l_hwnd->Handle = xyz; // error here return l_hwnd->Handle; }
public IntPtr LiveView(System.Windows.Forms.Control wnd, String CamIP, EventArgs e, int i) { l_hwnd1 = new DisplayWnd(); l_hwnd1.Parent = wnd; IntPtr ret = l_hwnd1.Handle; return ret; //return Image or Stream }
IntPtr^
IntPtr
Handle
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)