How to embeded camera application in my program?help me,please
| Tue, 2008-06-17 06:12 | |
|
in my program,i want to embeded the camera application,i do it like below,in other place i call the OpenCamera() function. TBool CLaunchCamera::OpenCamera() { if( m_pEikonEnv == NULL )
TApaAppInfo appInfo; if( FindCamera( appInfo) == FALSE ) m_pProcess = m_pEikonEnv->Process(); TApaApplicationFactory aFactory(appInfo.iUid); m_pAppdoc = m_pProcess->AddNewDocumentL(aFactory); //-------------here is the problem!,which show me "system error -1" ASSERT( m_pAppdoc != NULL ) ;
TApaDocCleanupItem cleanup(m_pProcess, m_pAppdoc); CleanupStack::PushL(cleanup);
m_pAppdoc->NewDocumentL(); CleanupStack::Pop(); // cleanup
m_bCloseCamera = FALSE ;
m_pAppdoc->EditL(this, EFalse );
return TRUE ; } but the problem is that when i run the program,it shows "system error -1",the problem lies in m_pAppdoc = m_pProcess->AddNewDocumentL(aFactory); so,can anybody help me?what's the problem??tks in advance! |
|






Forum posts: 15
why nobody??
Forum posts: 32
Try this buddy
http://wiki.forum.nokia.com/index.php/TSS000037_-_Embedded_camera_view_in_an_application
Pramod
"Nobody will believe in you unless you believe in yourself."
Forum posts: 15
tks,pramod.
i forgot to tell you that i use the 3rd edition platform.in the 2nd edition,i am able to realize it like below:
m_pAppdoc = m_pProcess->AddNewDocumentL(appInfo.iFullName, appInfo.iUid);but now,i want to realize it on the 3rd edition platform.when i try it as i have figured out above,it shows me "system error -1".i don't know why,can anyone help me to find the problem in my code?my code is like this:
TApaApplicationFactory aFactory(appInfo.iUid);
m_pAppdoc = m_pProcess->AddNewDocumentL(aFactory); //-------------here is the problem!,which show me "system error -1"
tks!