×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    16

    App can not display on emulator's Installed folder after building

    I'm new to Symbian C++
    Using Carbide v2.0 to create a "HelloWorld" S60 GUI application, it is built ok by command line "bldmake bldfiles", "abld makefile all", "abld resource", "abld build WINSCW udeb" and runs quite ok on emulator S60 3rd Edition FP1 after command line "epoc".

    Not using Carbide, a simple example application, SimpleEx, is edited by notepad and compiled ok by command line "bldmake bldfiles", "abld makefile all", "abld resource", "abld build WINSCW udeb". But it can not display on emulator. There is only the "HelloWorld" app created by Carbide in installed folder of the emulator.

    Anyone knows how to test such app on emulator?
    Did I miss somthing in bld.inf, mmp file, resource file, header file, or source file?

    Thanks.
    Last edited by mohammednguyen; 2008-12-29 at 08:36.

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

    Re: App can not display on emulator's Installed folder after building

    Is SimpleEx a GUI application? What is in the .mmp file?

  3. #3
    Super Contributor
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: App can not display on emulator's Installed folder after building

    there are some reason cause the problem. if you generate SimpleEx by change some "HelloWorld" code, be notice.

    1st. the new SimpleEx need have it owned reg.rss,
    2nd. it need have new uid3.
    3rd. .rsc file must be new name other than "HelloWorld".
    4th. if has .mbm file, change the file name
    5th. target exe name need changed.

    etc.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    16

    Re: App can not display on emulator's Installed folder after building

    Quote Originally Posted by wizard_hu_ View Post
    Is SimpleEx a GUI application? What is in the .mmp file?
    Thanks wizard_hu for your reply.
    I created a totally new folder name SE and put necessaries files in order like this:
    ..SE\group\
    bld.inf
    SimpleEx.mmp
    ..SE\data\
    SimpleEx.rss
    ..SE\inc\
    SimpleEx.h (I have put all classes in one header file)
    SimpleEx.hrh
    ..SE\source\
    SimpleEx.cpp
    SimpleEx_App.cpp
    SimpleEx_Doc.cpp
    SimpleEx_UI.cpp
    SimpleEx_View.cpp

    the SimpleEx.mmp is edited like this:
    Code:
    TARGET SimpleEx.app
    TARGETTYPE app
    UID 0x100039CE 0x10005B94
    TARGETPATH \system\apps\SimpleEx
    SOURCEPATH ..\src
    SOURCE SimpleEx.cpp
    SOURCE SimpleEx_app.cpp
    SOURCE SimpleEx_view.cpp
    SOURCE SimpleEx_ui.cpp
    SOURCE SimpleEx_doc.cpp
    SOURCEPATH ..\data
    RESOURCE SimpleEx.rss
    
    SYSTEMINCLUDE \epoc32\include
    USERINCLUDE ..\inc
    LIBRARY euser.lib apparc.lib cone.lib eikcore.lib
    LIBRARY avkon.lib
    Last edited by mohammednguyen; 2008-12-30 at 07:22.

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: App can not display on emulator's Installed folder after building

    With pre-3rd edition the folder where the files are located needs to be same named as the files, so try changing the systemappsSimpleEx to SimpleEx.

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    16

    Re: App can not display on emulator's Installed folder after building

    Thanks qxiaoyuan for your help.
    The implementation file of CSimpleExApplication class in SimpleEx_App.ccp source code returns TUid already defined and different from HelloWorld's id:
    Code:
    #include "SimpleEx.h"
    const TUid KUidSimpleExApp = {0x10.....};
    CApaDocument* CSimpleExApplication::CreateDocumentL()
    {
    return new(ELeave) CSimpleExDocument(*this);
    }
    TUid CSimpleExApplication::AppDllUid() const
    {
    return KUidSimpleExApp;
    }
    Please ignore my stupid thinking that I miss something that link between the compiled application and the emulator?

  7. #7
    Registered User
    Join Date
    Nov 2008
    Posts
    16

    Re: App can not display on emulator's Installed folder after building

    Quote Originally Posted by symbianyucca View Post
    With pre-3rd edition the folder where the files are located needs to be same named as the files, so try changing the systemappsSimpleEx to SimpleEx.
    Thank symbianyucca very much, unfortunately changing folder name to SimpleEx makes no difference, the emulator still did not show the SimpleEx. And changing TARGETPATH of SimpleEx.mmp file from "system\apps\SimpleEx" to "SimpleEx" is not work too.
    Last edited by mohammednguyen; 2008-12-30 at 06:04.

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

    Re: App can not display on emulator's Installed folder after building

    Indeed, that is not enough. SimpleEx seems to be an S60 2nd (or 1st) edition project, so it has to be ported to 3rd edition first. My quick checklist is in #2 of http://discussion.forum.nokia.com/fo...ad.php?t=91547, and you can get "official" porting guide from FN: head towards Docs above, then Symbian C++, then Compatibility.

Similar Threads

  1. Replies: 1
    Last Post: 2007-04-16, 08:57
  2. How to display Msg dialog in an EXE app?
    By Asheesh in forum Symbian
    Replies: 1
    Last Post: 2004-10-27, 04:10
  3. Replies: 5
    Last Post: 2004-10-13, 09:13
  4. Replies: 0
    Last Post: 2004-03-24, 08:40
  5. J2ME Question: Can't display my app on Nokia 7210 Emulator?
    By mibuyt in forum Mobile Java General
    Replies: 10
    Last Post: 2003-10-28, 22:43

Posting Permissions

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