×

Discussion Board

Results 1 to 7 of 7

Thread: dialog in a DLL

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    10

    Question dialog in a DLL

    Hi!
    I'm working on the developement of a library and I have to display a dialog box. I develop under S60 3rd edition on nokia N73.
    My question is : is it possible to display a dialog in a static library(DLL) under symbian 9.1?
    Last edited by ljghost; 2008-05-30 at 07:35.

  2. #2
    Registered User
    Join Date
    May 2008
    Posts
    10

    Re: dialog in a DLL

    Help me please!
    I try this in an exported function of my DLL :
    Code:
    CEikDialog *previewDialogBox = new (ELeave) CEikDialog();
    previewDialogBox->ExecuteLD(R_DRMAGENT_PREVIEW_DIALOGBOX);
    But it crashes in the second line ("...ExecuteLD...")!!! I created this resource file which I have included :
    Code:
    RESOURCE DIALOG r_drmagent_preview_dialogBox
    {
      buttons = EEikBidOk;
      flags = EEikDialogFlagWait;
      items =
      {
        DLG_LINE
        {
          type = EEikCtLabel;
          id = drmAgentDialogBoxLabel;
          control = LABEL
          {
            horiz_align=EEikLabelAlignHCenter;
            standard_font=EEikLabelFontNormal;
            txt = "HELLO WORLD!!!";
          };
        }
      };
    }

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: dialog in a DLL

    Most people around do not like the word "crash", however they like panic codes: http://wiki.forum.nokia.com/index.ph...ded_panic_code
    Anyway, "buttons = EEikBidOk;" does not look nice, learn what "buttons" should contain. Try some R_AVKON_SOFTKEYS... instead.

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    10

    Re: dialog in a DLL

    Quote Originally Posted by wizard_hu_ View Post
    Most people around do not like the word "crash", however they like panic codes: http://wiki.forum.nokia.com/index.ph...ded_panic_code
    Anyway, "buttons = EEikBidOk;" does not look nice, learn what "buttons" should contain. Try some R_AVKON_SOFTKEYS... instead.
    I already test it with this :
    Code:
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    It is the same problem!
    I have this panic: CONE 14!

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: dialog in a DLL

    CEikDialog might be a problem. What happens if you write CAknDialog instead?

  6. #6
    Registered User
    Join Date
    May 2008
    Posts
    10

    Re: dialog in a DLL

    Quote Originally Posted by wizard_hu_ View Post
    CEikDialog might be a problem. What happens if you write CAknDialog instead?
    Thanks for the replies!

    I resolved the problem! A panic CONE 14 signify that the resource rsc cannot be found so I add this :
    Code:
    _LIT(KPath, "c:\\resource\\apps\\drmAgent.rsc");
    CEikonEnv* coe = CEikonEnv::Static();
    coe->AddResourceFileL(KPath);
    As you see in the code, I don't create a new CEikonEnv because The application which uses my lib has already create it otherwise It will generate a PANIC CONE 2 if you create another.
    Last edited by ljghost; 2008-05-30 at 12:54.

  7. #7
    Regular Contributor
    Join Date
    Jan 2010
    Location
    Egypt
    Posts
    53

    Re: dialog in a DLL

    hello there ,

    I'm facing the same problem but in my situation i fail in ecom plug in that i want to display gui application
    could anybody help me ????


    thanks

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Launching a dialog when the application starts
    By Uriah Eisenstein in forum Symbian User Interface
    Replies: 10
    Last Post: 2009-03-31, 09:06
  3. [announce] wait dialog wrapper 0.2
    By lfd in forum Symbian
    Replies: 10
    Last Post: 2008-03-21, 11:03
  4. 2nd ed Autorun dll vs PIN dialog
    By truf in forum Symbian
    Replies: 1
    Last Post: 2007-10-03, 12:47
  5. what happens to TLS when DLL is unloaded?
    By rtillitt in forum Symbian
    Replies: 1
    Last Post: 2002-11-27, 12:11

Posting Permissions

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