When I input 0, I have Eas圜amera returned, but input 1 with nothing output. WideCharToMultiByte(CP_ACP,0,var.bstrVal,-1,sName, nBufferSize ,"",NULL) Hr = pBag->Read(L"FriendlyName", &var, NULL) Hr = pM->BindToStorage(0, 0, IID_IPropertyBag, (void **)&pBag) HRESULT hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER, IID_ICreateDevEnum, (void**)&pCreateDevEnum) To verify, I have another method called CameraName(), int CCameraDS::CameraName(int nCamID, char* sName, int nBufferSize) While(hr = pEm->Next(1, &pM, &cFetched), hr=S_OK) Hr = pCreateDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEm, 0) IID_ICreateDevEnum, (void**)&pCreateDevEnum) HRESULT hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER, Am I missing something? int CCameraDS::CameraCount() When in VS 2015, I defined a CCameraDS class with a function called CameraCount(), but when I call this function it always returns me 1 which represents the Eas圜amera of my laptop. I've installed the driver and tested in AMCap that the PS3eye is working. To test if PS3Eye DirectShow component functions properly, run the AmCap application from the start menu. I'm trying to use a PS3eye camera on Windows 10 with DirectShow sdk. DirectShow Video Source for PS3Eye camera will also be installed, registered and ready for use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |