HRESULT Result = S_OK;
IWiaVideo *Device = NULL;
CoInitialize(NULL);
Result = CoCreateInstance(CLSID_WiaVideo, NULL, CLSCTX_INPROC_SERVER, IID_IWiaVideo, (void**)&Device);
// Ok Result is still 'S_OK' here still.
Result = Device->CreateVideoByDevNum(0, hWnd, FALSE, TRUE);
// Now Result is E_POINTER.
[Solved] IWiaVideo::CreateVideoByDevNum Failure
Hello all,
I'm trying to capture image using WIA from a webcam.
I get a failure which I cannot explain the cause. Please see the following source code:
I cannot explain why the result is E_POINTER all the time. All drivers are installed and only 1 webcam is connected to this computer. Can any help me?
Thank you,
Xeile
[Edited by - Xeile on January 10, 2006 9:31:12 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement