I am trying to create an application which adds a contact to the contact database.But before adding the user should be able to edit the values in the different fields. So i used the contact editor dialog.but while creating the dialog using NewL a CONE14 error occurs i.e Environment cannot find the specified resource in any resource file The code used is as shown .
I was succesful in adding the contact if i uncomment the commented lines but i require an editor(UI).Code:void CSendSMSView::HandleCommandL(TInt aCommand) { switch ( aCommand ) { .. .. case ESendSMSCmdAddContact: { _LIT(KFname,"Rakesh"); _LIT(KCompany,"Microsoft"); _LIT(KMobNo,"9886897435"); CPbkContactEngine* iContactEngine = CPbkContactEngine::NewL(NULL); CleanupStack::PushL(iContactEngine); CPbkContactItem* newItem = iContactEngine->CreateEmptyContactL(); CleanupStack::PushL(newItem); UpdateFieldL(newItem,EPbkFieldIdPhoneNumberMobile,KMobNo); UpdateFieldL( newItem, EPbkFieldIdFirstName,KFname); UpdateFieldL(newItem,EPbkFieldIdCompanyName,KCompany); //TContactItemId contactId; //contactId = iContactEngine->AddNewContactL(*newItem); CPbkContactEditorDlg* contactEditorDlg = CPbkContactEditorDlg::NewL(*iContactEngine,*newItem,ETrue); CleanupStack::PushL(contactEditorDlg); contactEditorDlg->ExecuteLD(); CleanupStack::Pop(contactEditorDlg); CleanupStack::PopAndDestroy(newItem); CleanupStack::PopAndDestroy(iContactEngine); break; }
Is there any other editor to do this ?
Expecting some help on this
Regards
Rakesh



