×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    78

    CPbkContactEditorDlg customize

    Hello,I tried to use customize CPbkContactEditorDlg
    and I wrote CContactEditorDlg class that Inherited from CPbkContactEditorDlg and I had no problem in compiling this class but when I want to build this project I faced to many LNK 2001 errors.
    please help me

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,675

    Re: CPbkContactEditorDlg customize

    And what are those link errors saying? Have you added the necessary library?

  3. #3
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    78

    Re: CPbkContactEditorDlg customize

    Hello
    the LNK errors are:
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CPbkContactEditorDlg:ynInitMenuPaneL(int,class CEikMenuPane *)" (?DynInitMenuPaneL@CPbkContactEditorDlg@@EAEXHPAVCEikMenuPane@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CPbkContactEditorDlg::ProcessCommandL(int)" (?ProcessCommandL@CPbkContactEditorDlg@@EAEXH@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual class CCoeControl * __thiscall CEikDialog::FadedComponent(int)" (?FadedComponent@CEikDialog@@EAEPAVCCoeControl@@H@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual int __thiscall CEikDialog::CountFadedComponents(void)" (?CountFadedComponents@CEikDialog@@EAEHXZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CEikDialog::PrepareContext(class CWindowGc &)const " (?PrepareContext@CEikDialog@@MBEXAAVCWindowGc@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CEikDialog::GetCustomAutoValue(void *,int,class CCoeControl const *)" (?GetCustomAutoValue@CEikDialog@@UAEXPAXHPBVCCoeControl@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "public: virtual enum MEikDialogPageObserver::TFormControlTypes __thiscall CEikDialog::ConvertCustomControlTypeToBaseControlType(int)const " (?ConvertCustomControlTypeToBaseControlType@CEikDialog@@UBE?AW4TFormControlTypes@MEikDialogPageObserver@@H@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "public: virtual struct SEikControlInfo __thiscall CEikDialog::CreateCustomControlL(int)" (?CreateCustomControlL@CEikDialog@@UAE?AUSEikControlInfo@@H@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CEikDialog::LineChangedL(int)" (?LineChangedL@CEikDialog@@MAEXH@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CEikDialog::PageChangedL(int)" (?PageChangedL@CEikDialog@@MAEXH@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CEikDialog::HandleControlEventL(class CCoeControl *,enum MCoeControlObserver::TCoeEvent)" (?HandleControlEventL@CEikDialog@@MAEXPAVCCoeControl@@W4TCoeEvent@MCoeControlObserver@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual class CEikCaptionedControl * __thiscall CEikDialog::GetFirstLineOnFirstPageOrNull(void)" (?GetFirstLineOnFirstPageOrNull@CEikDialog@@MAEPAVCEikCaptionedControl@@XZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CEikDialog::MappedCommandId(int)" (?MappedCommandId@CEikDialog@@MAEHH@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CEikDialog::BorderStyle(void)" (?BorderStyle@CEikDialog@@MAEHXZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CEikDialog::SetSizeAndPosition(class TSize const &)" (?SetSizeAndPosition@CEikDialog@@MAEXABVTSize@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CEikDialog::HandleInteractionRefused(int)" (?HandleInteractionRefused@CEikDialog@@MAEXH@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CPbkContactEditorDlg::HandleControlStateChangeL(int)" (?HandleControlStateChangeL@CPbkContactEditorDlg@@EAEXH@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CPbkContactEditorDlg::SetInitialCurrentLine(void)" (?SetInitialCurrentLine@CPbkContactEditorDlg@@EAEXXZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CPbkContactEditorDlg::PostLayoutDynInitL(void)" (?PostLayoutDynInitL@CPbkContactEditorDlg@@EAEXXZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CPbkContactEditorDlg::PreLayoutDynInitL(void)" (?PreLayoutDynInitL@CPbkContactEditorDlg@@EAEXXZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual int __thiscall CPbkContactEditorDlg::OkToExitL(int)" (?OkToExitL@CPbkContactEditorDlg@@EAEHH@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CEikDialog::Reserved_2(void)" (?Reserved_2@CEikDialog@@EAEXXZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CEikDialog::WriteInternalStateL(class RWriteStream &)const " (?WriteInternalStateL@CEikDialog@@MBEXAAVRWriteStream@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual class CCoeControl * __thiscall CEikDialog::ComponentControl(int)const " (?ComponentControl@CEikDialog@@MBEPAVCCoeControl@@H@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CEikDialog::CountComponentControls(void)const " (?CountComponentControls@CEikDialog@@MBEHXZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "public: virtual class TCoeInputCapabilities __thiscall CEikDialog::InputCapabilities(void)const " (?InputCapabilities@CEikDialog@@UBE?AVTCoeInputCapabilities@@XZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CPbkContactEditorDlg::GetHelpContext(class TCoeHelpContext &)const " (?GetHelpContext@CPbkContactEditorDlg@@EBEXAAVTCoeHelpContext@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CEikDialog::GetColorUseListL(class CArrayFix<class TCoeColorUse> &)const " (?GetColorUseListL@CEikDialog@@UBEXAAV?$CArrayFix@VTCoeColorUse@@@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual class TSize __thiscall CEikDialog::MinimumSize(void)" (?MinimumSize@CEikDialog@@EAE?AVTSize@@XZ)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall CEikDialog::ConstructFromResourceL(class TResourceReader &)" (?ConstructFromResourceL@CEikDialog@@EAEXAAVTResourceReader@@@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CEikDialog::MakeVisible(int)" (?MakeVisible@CEikDialog@@UAEXH@Z)
    CContactEditorDlg.obj : error LNK2001: unresolved external symbol "private: virtual enum TKeyResponse __thiscall CPbkContactEditorDlg::OfferKeyEventL(struct TKeyEvent const &,enum TEventCode)" (?OfferKeyEventL@CPbkContactEditorDlg@@EAE?AW4TKeyResponse@@ABUTKeyEvent@@W4TEventCode@@@Z)
    CContactEditorDlg.obj : error LNK2019: unresolved external symbol "protected: __thiscall CPbkContactEditorDlg::CPbkContactEditorDlg(class CPbkContactEngine &,class CPbkContactItem &,int)" (??0CPbkContactEditorDlg@@IAE@AAVCPbkContactEngine@@AAVCPbkContactItem@@H@Z) referenced in function "private: __thiscall CContactEditorDlg::CContactEditorDlg(class CPbkContactEngine &,class CPbkContactItem &,int)" (??0CContactEditorDlg@@AAE@AAVCPbkContactEngine@@AAVCPbkContactItem@@H@Z)
    CContactEditorDlg.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CContactEditorDlg::~CContactEditorDlg(void)" (??1CContactEditorDlg@@UAE@XZ) referenced in function "public: virtual void * __thiscall CContactEditorDlg::`scalar deleting destructor'(unsigned int)" (??_GCContactEditorDlg@@UAEPAXI@Z)

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,675

    Re: CPbkContactEditorDlg customize

    Quote Originally Posted by wizard_hu_ View Post
    Have you added the necessary library?
    Apparently not.
    Read the "unresolved external symbol" parts, there is always a Something::Anything. Then you can usually find Something in the SDK Help, and the required .lib file should be mentioned there. If you are using CodeWarrior do not forget Project/Re-Import Symbian Project ... after modifying the .mmp file.

  5. #5
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: CPbkContactEditorDlg customize

    Hi all, i am using CPbkContactEditorDlg in my application.

    It open the dialog box but as i select done etering some values(name,number)it is giving system(-23 )error.

    I am not able to find out the reason, please do help me.

    CODE:
    CPbkContactEngine* pbkContactEng = CPbkContactEngine::NewL( &iCoeEnv->FsSession());

    CleanupStack::PushL( pbkContactEng );
    CCoeEnv *env = CEikonEnv::Static();
    RPbkViewResourceFile pbkRes( *env );
    pbkRes.OpenL();
    CPbkContactItem* aContactItem = pbkContactEng->CreateEmptyContactL();
    CleanupStack::PushL( aContactItem );
    CPbkContactEditorDlg* pbkContactDlg =
    CPbkContactEditorDlg::NewL( *pbkContactEng,*aContactItem,
    ETrue, -1,
    ETrue );
    CleanupStack::PushL( pbkContactDlg );
    pbkContactDlg->SetMopParent( iAvkonAppUi );
    TInt res( KErrNone );
    TRAPD( err, res = pbkContactDlg->ExecuteLD() );
    pbkRes.Close();
    CleanupStack::Pop( pbkContactDlg );
    CleanupStack::PopAndDestroy( 2 ); //aContactItem, pbkContactEng


    Thanks in advance

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: CPbkContactEditorDlg customize

    santu.paul again, i wanted to know why you are mixing your problem with other non-related posts and also try not to multi-post.

    system(-23 ) says "Failed to write", try debugging on emulator if some thing is wrong.

Similar Threads

  1. protected function of Class CPbkContactEditorDlg
    By vivek_2kx in forum Symbian
    Replies: 4
    Last Post: 2008-08-05, 09:18
  2. CPbkContactEditorDlg - Phonebook dialogs
    By karthikn in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-06-13, 08:49
  3. View Contacts using CPbkContactEditorDlg
    By karthikn in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-05-08, 03:03
  4. CPbkContactEditorDlg: cant edit existing item
    By SymbianSandy in forum Symbian
    Replies: 2
    Last Post: 2007-03-30, 01:16
  5. CPbkContactEditorDlg crashes on 3rd edition
    By sreelakshmi in forum Symbian User Interface
    Replies: 5
    Last Post: 2007-03-22, 12:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×