×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    290

    Want to change the icon in the contextpane....error!

    Hi,


    i want to change the icon in my status pane but the build process fails!

    Code:
    void CMyAppUi::ConstructL()
    	{
    	// Initialise app UI with standard value.
    	BaseConstructL();
    
    	// Create view object
    	iAppView = CMyAppView::NewL( ClientRect() );
    
    
        CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
    	if (sp)
    	{
    		CAknContextPane* ContextPane = (CAknContextPane*)
    		sp->ControlL(TUid::Uid(EEikStatusPaneUidContext));
    		if (ContextPane)
    		{
    			//ContextPane->SetPictureFromFileL  
    		}				
    	}
    
    
    	PrivacyStatementL();
    
    	}
    if i build the code the following error happes

    ..\..\..\..\..\..\Symbian\9.1\S60_3rd\EPOC32\BUILD\..\..\..\..\..\group\..\GCCE\UREL\..AppUi.o: In function `CMyAppUi::ConstructL()':
    Myappui.cpp.text+0x78): undefined reference to `CEikStatusPaneBase::ControlL(TUid) const'
    make: *** [..\..\..\..\..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\GCCE\UREL\MyApp.exe] Error 1
    Well i think the problem is with :ControlL(TUid::Uid(EEikStatusPaneUidContext));

    but i dont know how to fix!


    Thanks

    Franky

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

    Re: Want to change the icon in the contextpane....error!

    Yes, reading the error message is always an option. Linker errors always mention a complete identifier, like a method name "CEikStatusPaneBase::ControlL(TUid) const" in this case. You should simply search for that in the SDK Help (or just the class CEikStatusPaneBase, and you will see which library is missing.

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    290

    Re: Want to change the icon in the contextpane....error!

    Hi,

    i placed my code in the AppView class after "CreateWindowL". I found somewhere in the web a code sample where it was like this way. I figured out that the AppView Class was derived from CAknView. My Class (i played around with a demo project from the sdk, changed files,...) "..AppView" was derived from "CCoeControl".
    My Error still exists. Each code example did it my way but the error was still the same.


    Greetz
    Franky

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

    Re: Want to change the icon in the contextpane....error!

    Quote Originally Posted by FrankTheFox View Post
    i placed my code in the AppView class after "CreateWindowL". I found somewhere in the web a code sample where it was like this way. I figured out that the AppView Class was derived from CAknView. My Class (i played around with a demo project from the sdk, changed files,...) "..AppView" was derived from "CCoeControl".
    My Error still exists. Each code example did it my way but the error was still the same.
    It does not matter. That is a linker error, it is about a missing .lib in your .mmp. Consider following the advice in my previous post.

  5. #5
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    290

    Re: Want to change the icon in the contextpane....error!

    Ok, i will show you a snip of my mmp file:

    LIBRARY euser.lib
    LIBRARY apparc.lib
    LIBRARY cone.lib
    LIBRARY eikcore.lib
    LIBRARY avkon.lib
    LIBRARY commonengine.lib
    LIBRARY efsrv.lib
    LIBRARY estor.lib
    LIBRARY hlplch.lib
    LIBRARY bafl.lib
    LIBRARY charconv.lib
    // [-] LIBRARY eikcoctl.lib
    LANG SC
    VENDORID 0
    CAPABILITY LocalServices NetworkServices ReadUserData UserEnvironment WriteUserData

    I found out that the "eikcoctl.lib " is important to build my code without errors. But when i insert this paticular library the mmp file item was changed to "// [-] LIBRARY eikcoctl.lib ".


    Greetz

    Franky

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Want to change the icon in the contextpane....error!

    Then Carbide.vs (probably) is preventing you from building the project. I do not know that tool, but according to other files you can either disable management (or automatic update) of you .mmp file and/or it provides a custom setting/dialog for adding .lib files.

  7. #7
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    290

    Re: Want to change the icon in the contextpane....error!

    Mysterious. If i remove the "mmp file update" from carbide props the error still remains the same.
    If i choose update mmp file the item is flagged ignored again.

    CEik will work for S60...?


    Greetz
    Franky

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Want to change the icon in the contextpane....error!

    Many CEik stuff works, obvious examples popping in my mind are menu (CEikMenuPane) and editors (CEikEdwin, CEikGlobalTextEditor, CEikRichTextEditor). But there should be many others.
    If everything fails with Carbide.vs, you can still remove the project from it, modify the .mmp file, and re-import the project.

  9. #9
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    290

    Re: Want to change the icon in the contextpane....error!

    Yes i will create a new project. I am lucky it will create a single view app with the desired lib's.
    Then i will port my changes from the old project to the new one.
    Why is Symbian/S60/UIQ programming that complicated and difficult to learn? But ok e.g. learning MFC and Windows Programming is much more difficult and complicated.


    Greetz
    Franky

Similar Threads

  1. error LNK2019: unresolved external symbol ???
    By wgarnett in forum Symbian
    Replies: 3
    Last Post: 2009-09-28, 06:53
  2. error including vector
    By Lichtens in forum Open C/C++
    Replies: 5
    Last Post: 2009-04-03, 14:19
  3. please help cell id
    By perthachy in forum Symbian
    Replies: 12
    Last Post: 2007-07-10, 13:14
  4. Carbide.vs 2.01 Registration Problem
    By baykal in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2006-12-22, 16:55

Posting Permissions

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