c#操作海康相机报错Enumerate devices fail!

int nRet = MyCamera.MV_CC_EnumDevices_NET(MyCamera.MV_GIGE_DEVICE | MyCamera.MV_USB_DEVICE, ref m_stDeviceList);
if (0 != nRet)
{
ShowErrorMsg("Enumerate devices fail!", 0);
return false;
}//GEV: Hikrobot MV-CA 

vs2019 ,调试-》调试属性-》生成-》目标平台,x64即可

 

posted @ 2023-12-14 17:07  txwtech  阅读(205)  评论(0编辑  收藏  举报