I'm trying to develop an application based on HP iPAQ 2790 (Windows Mobile 5.0 OS), using add on camera Spectec SD camera 1.3M to capture a image. I'm using Visual Studio 2005(VB).
The camera works well in the PDA. However I would like to control the camera in my own application using CameraCaptureDialog (we have difficulties to get SDKs for the camera).
The code is:
Dim ccd As New CameraCaptureDialog
ccd.Mode = CameraCaptureMode.Still
ccd.Resolution = New Size(160, 120)
ccd.StillQuality = CameraCaptureStillQuality.Normal
filename = ccd.FileName
photo.Image = New Bitmap(filename)
When I run the application, it throws an InvalidOperationException on ccd.ShowDialog().
Is the CameraCaptureDialog able to control add on camera or just for built-in camera. I would be grateful if any one could answer my questions.
Thank you very much