none
DVR Video and PictureBox RRS feed

  • Question

  • Regards:

    I can't see stream video in PictureBox but I have login succsessfull. My code is:

    LONG lUserID;
    NET_DVR_DEVICEINFO_V30 struDeviceInfo;
    lUserID = NET_DVR_Login_V30("190.241.43.37", 8000, "admin", "1234", &struDeviceInfo);
    if (lUserID < 0)
    {
            GetDlgItem(IDC_INFO1)->SetWindowText("Error lUserID");
            NET_DVR_Cleanup();
    	return;
    }
    
    NET_DVR_SetExceptionCallBack_V30(0, NULL, g_ExceptionCallBack, NULL);
    LONG lRealPlayHandle;
    HWND hWnd = (HWND)(*GetDlgItem(IDC_PBCAM));
    NET_DVR_CLIENTINFO ClientInfo = { 0 };
    ClientInfo.hPlayWnd = hWnd;// GetDlgItem(IDC_PBX_CAM)->GetSafeHwnd;//IDC_PBX_CAM
    ClientInfo.lChannel = 1;
    ClientInfo.lLinkMode = 0;
    ClientInfo.sMultiCastIP = NULL;
    BOOL bPreviewBlock = false;
    lRealPlayHandle = NET_DVR_RealPlay_V30(lUserID, &ClientInfo, NULL, NULL, 0);
    if (lRealPlayHandle < 0)
    {
    	GetDlgItem(IDC_INFO1)->SetWindowText("Error lRealPlayHandle");
    	NET_DVR_Cleanup();
    	return;
    }
    else
    {
    	GetDlgItem(IDC_INFO1)->SetWindowText("video ok");
    }

    I have text "video ok" but don't appear video. The compilation is without errors.

    I use Visual C++ 2013.

    Any idea?

    • Moved by Baron Bi Monday, May 7, 2018 7:44 AM Third-party library issue
    Wednesday, April 25, 2018 2:58 PM

All replies

  • Hi,

    thanks for posting here.

    This forum is about c++ development with Microsoft products. For your case which is more related to the HikVision library, I suggest you ask their support team for better support.

    Your understanding and cooperation will be grateful.

    Best Regards,

    Baron Bi


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, April 26, 2018 6:38 AM