Click here to Skip to main content
15,891,136 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: SQL CE 2.0 cyrillic characters - urgent please Pin
Richard MacCutchan25-Apr-11 1:41
mveRichard MacCutchan25-Apr-11 1:41 
GeneralRe: SQL CE 2.0 cyrillic characters - urgent please Pin
Tyler4525-Apr-11 2:35
Tyler4525-Apr-11 2:35 
QuestionNeed help with my Java Android code Pin
mofuobi20-Apr-11 23:57
mofuobi20-Apr-11 23:57 
AnswerRe: Need help with my Java Android code [modified] Pin
Patrick Kalkman21-Apr-11 9:47
Patrick Kalkman21-Apr-11 9:47 
AnswerRe: Need help with my Java Android code Pin
All Time Programming21-Apr-11 21:13
All Time Programming21-Apr-11 21:13 
QuestionWin CE getch() and clrscr() Pin
baerten14-Apr-11 23:44
baerten14-Apr-11 23:44 
AnswerRe: Win CE getch() and clrscr() Pin
Paul Heil15-Apr-11 7:49
Paul Heil15-Apr-11 7:49 
QuestionCamera not working working on Motorola MC95 when accessing with C++ / ME 6.5 Pin
lichtbringer14-Apr-11 23:24
lichtbringer14-Apr-11 23:24 
Hello,

I'm programming an application for use on Mobile Data Terminals. A customer is using the MC95 from Motorola with Windows ME 6.5 on it.

Strangly the camera is not respondive when I try to access it via coding.

I've tried it it with the SHCameraCapture-Function:
SHCAMERACAPTURE scc;


// Set the SHCAMERACAPTURE structure.
SecureZeroMemory(&scc, sizeof(scc));
scc.cbSize = sizeof(scc);
scc.hwndOwner = NULL;
scc.pszInitialDir = NULL;      //= TEXT("\\My Documents");
scc.pszDefaultFileName = NULL;//TEXT("test.jpg");
scc.pszTitle = NULL;
scc.StillQuality = CAMERACAPTURE_STILLQUALITY_DEFAULT;
scc.Mode = CAMERACAPTURE_MODE_STILL;

res = SHCameraCapture( &scc );

as well as with the ICaptureGraphBuilder2 interface:
LOG('I', "Camera::LoadDriver. Starting");
GUID guidCamera = { 0xCB998A05, 0x122C, 0x4166, 0x84, 0x6A,
                    0x93, 0x3E, 0x4D, 0x7E, 0x3C, 0x86 };

HRESULT res = 0;
HANDLE hFind = NULL;
DEVMGR_DEVICE_INFORMATION pdi;
DEVMGR_DEVICE_INFORMATION pdi2;
IPersistPropertyBag* pPropBag = NULL;
CPropertyBag propBag;
CameraErrorLog* pErrorLog = new CameraErrorLog();

pdi.dwSize = sizeof(DEVMGR_DEVICE_INFORMATION);


hFind = FindFirstDevice(DeviceSearchByGuid,&guidCamera,&pdi);
LOG('I', "Camera::LoadDriver. Calling FindFirstDevice");
if (hFind == INVALID_HANDLE_VALUE || pdi.hDevice == NULL)
{
    LOG('I', "Camera::LoadDriver. Calling FindFirstDevice failed");
    res = HRESULT_FROM_WIN32(GetLastError());
    LOG('I', "Camera::LoadDriver. Calling FindFirstDevice HRESULT = (%d)", res);
    goto CLEANUP;
}

LOG('I', "Camera::LoadDriver. Calling FindNextDevice");
if(FindNextDevice(hFind, &pdi2))
{
    propBag.driverName = SysAllocString(pdi2.szLegacyName);
}
else
{
    propBag.driverName = SysAllocString(pdi.szLegacyName);

    //LOG('I', "Camera:LoadDriver driverName = (%s)", propBag.driverName );

}

CHK(pFilter->QueryInterface(IID_IPersistPropertyBag,(VOID**)&pPropBag));

LOG('I', "Camera::LoadDriver. QueryInterface IID_IPersistPropertyBag");
//CHK(pPropBag->Load(&propBag,NULL));

res = pPropBag->Load(&propBag, pErrorLog);
if(FAILED(res))
{
    LOG( 'E', "Camera::LoadDriver pPropBag->Load faile HRESULT = (%x)", res );
    goto CLEANUP;
}
LOG('I', "Camera::LoadDriver. pPropBag Load");

CLEANUP:

FindClose(hFind);
RELEASE(pPropBag);
return res;

return S_OK;

In the first case SHCameraCapture is return the value 80070037 indicating an error (FILE_NOT_FOUND/DEV_NOT_FOUND?).

In the second case pPropBag->Load is returning the value 80070037.

But if I'm using the standard Pictures&Videos-Application the camera is working.

When I'm installing my application on a PSION Ikön with Windows ME 6.1 the camera capture with second (which is the standard way I'm using) is working.

Our Development Enviroment is embedded Visual C++ 4.0 with the Mobile SDK 6.

I'm new to the mobile development and now reaching my limits.

Has anyone an idea what's going on?
Zynismus ist der geglückte Versuch die Welt zu verstehen.

Zwei Dinge sind unendlich. Das Universium und die menschliche Dummheit. Nur beim ersteren bin ich mir nicht sicher.
Albert Einstein

AnswerRe: Camera not working working on Motorola MC95 when accessing with C++ / ME 6.5 Pin
joputongordo9-Dec-11 1:31
joputongordo9-Dec-11 1:31 
QuestionHow we make a read message into unread message in Blackberry Pin
zakirhussain4913-Apr-11 20:27
zakirhussain4913-Apr-11 20:27 
Jokez Pin
rtvscan13-Apr-11 3:21
rtvscan13-Apr-11 3:21 
QuestionAndroid ksoap2 stub generator giving errorneous stub Pin
shivdattam12-Apr-11 0:54
shivdattam12-Apr-11 0:54 
QuestionGetting video url to view on android phone Pin
Aljaz11111-Apr-11 2:01
Aljaz11111-Apr-11 2:01 
QuestionCustomized Mobile Firmware Pin
yaddenn6-Apr-11 17:16
yaddenn6-Apr-11 17:16 
QuestionWindows Mobile C# Pin
kmarine01205-Apr-11 11:23
kmarine01205-Apr-11 11:23 
QuestionHow can send Flash (Notification) SMS by Android? Pin
Le@rner4-Apr-11 21:24
Le@rner4-Apr-11 21:24 
AnswerRe: How can send Flash (Notification) SMS by Android? Pin
Ravi Bhavnani19-May-11 13:52
professionalRavi Bhavnani19-May-11 13:52 
GeneralRe: How can send Flash (Notification) SMS by Android? Pin
Le@rner19-May-11 18:25
Le@rner19-May-11 18:25 
GeneralRe: How can send Flash (Notification) SMS by Android? Pin
Ravi Bhavnani19-May-11 18:40
professionalRavi Bhavnani19-May-11 18:40 
NewsDisplay trailer from url on Android Pin
Aljaz1114-Apr-11 5:10
Aljaz1114-Apr-11 5:10 
QuestionSCMAD/OCPMAD Pin
presime3-Apr-11 23:57
presime3-Apr-11 23:57 
Questionhow to receive new messages in sim rather than phone [modified] Pin
aeman2-Apr-11 21:33
aeman2-Apr-11 21:33 
Questionhow to check how many messages are in sim memory Pin
aeman2-Apr-11 3:24
aeman2-Apr-11 3:24 
AnswerRe: how to check how many messages are in sim memory Pin
DaveAuld2-Apr-11 3:54
professionalDaveAuld2-Apr-11 3:54 
GeneralRe: how to check how many messages are in sim memory Pin
aeman2-Apr-11 4:36
aeman2-Apr-11 4:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.