Home > Software engineering >  Hikvision secondary development ocx encountered confusion
Hikvision secondary development ocx encountered confusion

Time:09-18

Divide the MFC function DEMO success stories of the facts before preview made ocx controls, is to try to import the SDK to do, no problem, download playback but do have some problems,


Do the control step is to import header files and import libraries, add additional dependencies GdiPlus. Lib, HCCore. Lib, HCNetSDK. Lib, PlayCtrl. Lib, completes the graphical interface, each control ID is like MFC application, convenient code migration,


Yesterday asked the teacher, the teacher say link error, because only the lib files, not used DLL. So to find the library files found in HCNetSDKCom file a HCPlayBack. DLL files, so want to additional dependencies, also not line, this DLL file is copied to the Debug of also have no a way,


So I want to please the great god refers to the road,




1> PlayBack. Obj: error LNK2019: cannot resolve the external symbol of "public: __thiscall CPlayBackApp: : CPlayBackApp (void)" (?????? 0 cplaybackapp @ @ QAE @ XZ), the symbol in the function "void __cdecl ` dynamic, initializer for 'theApp' '(void)" (?????? __EtheApp @ @ YAXXZ) referenced


1> PlayRemoteFile. Obj: error LNK2001: cannot resolve the external symbol of "protected: void __thiscall PlayRemoteFile: : OnButtonLockUnlock (void)" (? OnButtonLockUnlock @ PlayRemoteFile @ @ IAEXXZ)


1> PlayRemoteFile. Obj: error LNK2001: cannot resolve the external symbol of "class STD: : vector (g_vecFileInfo "? G_vecFileInfo @ @ 3 v? $vector @ UNET_DVR_FINDDATA_V30 @ @ V? $allocator @ UNET_DVR_FINDDATA_V30 @ @ @ STD @ @ @ STD @ @ A)


1> PlayRemoteFile. Obj: error LNK2001: cannot resolve the external symbol of "struct STRU_DEVICE_INFO * g_struDevInfo" (? G_struDevInfo paustru_device_info @ @ @ @ 3 A)


1> PlayRemoteFile. Obj: error LNK2001: cannot resolve the external symbol "int g_iCurDevIndex" (? G_iCurDevIndex @ @ 3 ha)


1> PlayRemoteFile. Obj: error LNK2001: cannot resolve the external symbol of "class PlayBackDlg * g_pMainDlg" (? G_pMainDlg pavplaybackdlg @ @ @ @ 3 A)


1> PlayTimeFile. Obj: error LNK2001: cannot resolve the external symbol of "class PlayBackDlg * g_pMainDlg" (? G_pMainDlg pavplaybackdlg @ @ @ @ 3 A)


1> D: \ \ c + + PlayBack \ Debug \ PlayBack ocx: fatal error LNK1120: six cannot resolve the external command

CodePudding user response:

You this is CPlayBackApp this some kind of CPP have included in the project

CodePudding user response:

Don't like the sea, the SDK

CodePudding user response:

Can send down how do you make out of the SDK ocx control instance, bosses
  • Related