Have an old program I have been using to remotely control a digital camera, in order to automatically take photos and transfer them to the PC. Program is based on WIA and, as far as I remember, it was originally designed and used on Windows XP.
Recently took it out of the archives, and have been trying to get it to work on 64-bit Windows 7 using the same camera. Locating the camera, and triggering a capture works without issue. However when executing this line:
//device of type WIA.Device
Item item = device.ExecuteCommand(CommandID.wiaCommandTakePicture);
null is returned, leaving me without an image reference to transfer. Have been searching high and low for a solution, but have been unable to come up with anything. Found another QA site where an answer suggested that using:
//manager of type WIA.DeviceManager, device of type WIA.Device
manager.RegisterEvent(EventID.wiaEventItemCreated, device.DeviceID);
manager.OnEvent += new _IDeviceManagerEvents_OnEventEventHandler(manager_OnEvent);
one would receive events containing an itemID after image capture. Have tried this, and no event gets raised.