MC9500 - Need Small Program to launch Camera application.

D Daniel Teeters 3 years 5 months ago
2 1 0

We are about to loose a 300,000 dollar deal and need some direction. Currently the partner is using Mobile Frame to produce his application. The customer does not want MF to control the camera and Scanner but wants to use Datawedge. We believe we can get this to work by using the Advanced Profile Application feature of Datawedge, but we have a problem, MobileFrame is using the following to call the camera application. (The call is listed at the end of this post.) But we cannot "key" off of an API call,  using the Advanced Profile Application Feature in Datawedge.   We need to find someone that can write a small application to activate the camera, but to call the \windows\camera.exe. (Mobile Frame has the ability to call a seperate application.) We believe we can use the Datawedge Profile Applicaton feature to key off camera.exe. Does anyone know someone that can do this for us?

Here is the code we use to take a photo with the Microsoft API:

 

                    //  initialization

        CameraCaptureDialog cameraCapture = new CameraCaptureDialog();

        cameraCapture.Mode = CameraCaptureMode.Still;

        cameraCapture.InitialDirectory = “YOUR DIRECTORY HERE”;

        cameraCapture.DefaultFileName = "MF_Camera_Capture.jpg";

 

        // Now take a photo:

        if (DialogResult.Cancel == cameraCapture.ShowDialog())

             return null;

Please Register or Login to post a reply

1 Replies

E Efkan YILMAZ

Dan,  The attached executable is a slightly modified version of a standard Microsoft WM SDK app which calls the camera API and should work for your requirement. If the partner wants to change the code to add/remove anything , the source is part of the WM6.5.3 DTK and is located at \Program Files\Windows Mobile 6.5.3 DTK\Samples\Common\CPP\Win32\CECamera Best Regards, Ian Hatton MSI EMEA

CONTACT
Can’t find what you’re looking for?