Wednesday, 15 May 2013

c# - camera in Windows Mobile 5.0 Pocket PC -



c# - camera in Windows Mobile 5.0 Pocket PC -

i'm developing c#, windows mobile app , need launch device camera:

this code:

cameracapturedialog ccd = new cameracapturedialog(); ccd.showdialog();//<--- picturebox1.image = new bitmap(ccd.filename);

in ccd.showdialog();//<--- line shows me next exception: system.invalidoperationexception: unknown error occurred.

i dont know if exception because of windows mobile 5.0 pocket pc doesn't have photographic camera built in. or i'm trying never works..

so... tell me something?

in fact, windows mobile 5.0 pocket pc emulator doesn't have built-in camera, that's why tries unsuccessful..

when built app, , installed on device, ran app and... surprise!!! worked!!

so... conclussion is:

the code lines work! on device, wont work on wmppc emulator...

if has different answer.. allow me know it.

c# exception camera pocketpc

No comments:

Post a Comment