Location: HTC Discussion Forum

Discussion: How to enumerate cameras on HTC Advantage X7500 Pocket PC? (C++)Reported This is a featured thread

Showing 2 posts

BillNew
How to enumerate cameras on HTC Advantage X7500 Pocket PC? (C++)
Oct 30 2009, 4:45 PM EDT | Post edited: Oct 30 2009, 6:48 PM EDT
I have an existing Visual Studio 2005 C++ Mobile OS 5 Pocket PC Application that needs to be able to "see" both the Back Camera and the Front Camera that comes with the HTC Advantage X7500 Pocket PC. (Mobile OS 5)

See this link:
http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/thread/b96085e0-9507-4a6a-bb0f-06f694d48d81

All that I am attempting to do is Enumerate the Front Camera so that I can use in it in a pre-existing program that connects using the camera's "device ID" (such as "CAM1:" or "CAM2:") then open the device and show the video feed on the screen.

The Back Camera will enumerate properly as "Cam1:" using the sample code that I posted on the other forum. So one would normally think or assume that if "Cam1:" is the Back Camera, surely the Front Camera would be "Cam2:"... but not so.

I need to allow usage of BOTH cameras that come with the unit in my existing program.

Is there an SDK to allow this to happen? If not, what method(s) are needed to connect and use the camera in a Visual Studio 2005 C++ Mobile OS 5 Pocket PC Application?

Even a sample application in Visual Studio 2005 C++ for Mobile OS 5 that can see and connect to the front camera then the back camera would be a good start. Just need to be able to switch cameras based on a ComboBox. Obviously, I'll make sure to stop the current camera before starting the switched to camera device.

Any help to get this resolved quickly will be greatly appreciated!
Do you find this valuable?    

BillNew
1. RE: How to enumerate cameras on HTC Advantage X7500 Pocket PC? (C++)
Nov 5 2009, 6:35 PM EST | Post edited: Nov 5 2009, 6:35 PM EST
*** Sigh! ***

This should be pretty simple... Yet it seems that NOBODY knows how to do this operation!

Have even tried the Mobile OS 5.0 SDK CeCamera Application for Pocket PC (Visual Studio 2005 C++ Project) but even it won't enumerate the Front Camera... It would need a modification but what is needed is unknown at this moment in time.

At least the built-in Application for Camera.EXE on the HTC Advantage X7500 Pocket PC does see both devices which gives me hope that this CAN be done!

... The search continues ...
Do you find this valuable?