×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    May 2003
    Posts
    96

    Basic Problems with CW wizard

    Hello,
    I’ve bought the license for CW Professional edition 3.1 and I am using it with SDK S60_3rd.
    I’m becamong mad on the attempt of creating an app using the wizard:
    Either it doesn’t compile, or the application is not visible in emulator!

    I succeeded in this step with Eclipse + carbide (so the assumption is that the environment is properly set up),
    but I need to use CW for remote debugging.

    I hope someone could help me.

    Approach 1: Create an application with the Wizard in CW.
    ============================================
    . I select S60 S60_3rd + S60 APP (since I would like GUI).
    . Platform WINSCW

    The project is created, but ‘make’ fails complaining about:
    ‘undefined identifier TDllReason’

    1a) My understanding is that I can remove it since is not used anymore in SDK 3.0.
    Then it compiles but the application is not visible from emulator.

    1b) I can replace it (as Eclipse does) with :
    GLDEF_C TInt E32Main()
    {
    return EikStart::RunApplication( NewApplication );
    }

    Result: COMPILES OK, BUT APPLICATION NOT VISIBLE IN EMULATOR


    Approach 2: create an application from Eclipse and import it
    =============================================
    This solution is kindly described here:
    http://discussion.forum.nokia.com/fo...ad.php?t=81519
    but the freezing fails (about ?NewApplication@@YAPAVCApaApplication@@XZ @1 )
    this fails even if I edit the .def file, and if I lunch the command line totol
    abld freeze & abld build winscw udeb

    Result: DOESN’T COMPILE.


    Apporach 3: import the helloworld basic
    ==============================
    It works. The main .cpp file has the same E32Main().

    There are differences in the .mmp file (as specified in porting SDK 2 FP3 -> SDK 3 document):
    Helloworld target is an .exe rather then .app, capabilities are required etc….


    Approach 4: fixing generated code following helloworld code example
    ====================================================
    . create a GUI application for S60 GUI
    . replace TDllReason with E32Main as above
    . change in .mmp file the target from .app to .exe and other things as specified in porting documentation
    . re-import .mmp file
    Result: COMPILES OK, BUT APPLICATION NOT VISIBLE IN EMULATOR

    Does anyone knows why?

    mik

  2. #2
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: Basic Problems with CW wizard

    Hi,

    Read pdf file for porting 2nd edition to 3rd edition, and follow with step by step.

    regards,
    eswar

  3. #3
    Regular Contributor
    Join Date
    May 2003
    Posts
    96

    Re: Basic Problems with CW wizard

    Hi,

    you probably didn't bother to read my whole post (too long?
    Indeed in the approach #3 I've mentioned that I've been following the "convertion" steps as described in porting from sdk 2 to 3 document.
    But in my particular case (empty and new application) they were not so many: just the .mmp file is involved, together with .cpp for the entry point change.

    Am I missing something?

    Thanks for your attempt anyway,
    mik

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

    Re: Basic Problems with CW wizard

    You are heading in the right direction I think (in 3rd edition, applications are .exe-s, etc.), but you have probably missed one important nuance: 3rd edition applications have an additional resource file which has the TARGETPATH \private\10003a3f\apps, usually having the name ApplicationName_reg.rss. This resource is inevitable for having the application displayed in the menu.

  5. #5
    Regular Contributor
    Join Date
    May 2003
    Posts
    96

    Re: Basic Problems with CW wizard

    This starts to be funny….

    Right, as wizard_hu says the FILE_reg.rss is needed.
    Indeed my .mmp file specifies:
    [..]
    START RESOURCE my_reader_reg.rss
    #ifdef WINSCW
    TARGETPATH \private\10003a3f\apps
    #else
    TARGETPATH \private\10003a3f\import\apps
    #endif
    END //RESOURCE

    According to my understanding this should be enough.
    However no .rss file is created in TARGETPATH as it is supposed to. And moving there the file created inside <the projectName>\group dir doesn’t help.
    Note: if I add the word “HEADER” it doesn’t neither create the .rss file in \Epoc32\include directory.

    What I am curious about is the behaviour of Eclipse + Carbide: the .rss file is NOT created in \private\10003a3f\apps, however it is created in \Epoc32\include and the application it is visible in emulator.

    I wonder what I am missing….
    mik

Similar Threads

  1. Nokia, do you listen to your customers? Problems of your new phones
    By djprofessork in forum General Development Questions
    Replies: 3
    Last Post: 2007-09-24, 15:15
  2. Several problems with NMIT 4.1 MMS
    By jtalviva in forum General Messaging
    Replies: 0
    Last Post: 2006-03-10, 11:03
  3. Several problems with NMIT 4.1
    By jtalviva in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-03-10, 10:59
  4. Problems with Application Wizard
    By awiget in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-09-26, 13:17

Posting Permissions

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