×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    6

    Please Help! Project Almost Complete. Need a little help please

    We are making a Yellow Pages Application for Symbian and its almost complete. Only problem is that when I change the name in the reg file,

    RESOURCE APP_REGISTRATION_INFO
    {
    app_file = "YellowPages";
    }

    The name is not changing. The Old name of the application is appearing. Is there any other place where I need to make changes to change the name? Please help!

  2. #2
    Registered User
    Join Date
    Apr 2009
    Posts
    13

    Re: Please Help! Project Almost Complete. Need a little help please

    change the caption string qtn_caption_string

    RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
    {
    short_caption = qtn_caption_string;
    caption_and_icon =
    CAPTION_AND_ICON_INFO
    {
    caption = qtn_caption_string;

    number_of_icons = 1;
    icon_file = "\\resource\\apps\\yellopages.mif";
    };
    }

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Re: Please Help! Project Almost Complete. Need a little help please

    you also have to change the old applicatoin name in ur pkg file under

    ; Header
    #{"Yellowpages"},(0xe6e33242), 0, 1, 1



    Replace "YellowPages" with ur desired New Name.

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

    Re: Please Help! Project Almost Complete. Need a little help please

    app_file in the _reg.rss is actually the name of the .exe file of the application which should be started, just without the .exe extension. If you have no localisable-stuff, you should simply rename your files (the .exe, the .rsc and the _reg.rsc in particular, and also change this app_file to the new name of the .exe).

  5. #5
    Registered User
    Join Date
    Jun 2009
    Posts
    6

    Re: Please Help! Project Almost Complete. Need a little help please

    @ashu, doesn't work for me the name remains same after making changes there.

    @asif, i already made changes there, but not working

    Pls help!

  6. #6
    Registered User
    Join Date
    Apr 2009
    Posts
    13

    Talking Re: Please Help! Project Almost Complete. Need a little help please

    Hi Diwakar,

    As per ur thread u started you dint specify in what places you want to change the name...... " The name is not changing. The Old name of the application is appearing. Is there any other place where I need to make changes to change the name? Please help!
    " But Where ?????? It would be gud if u directly point the problem.

  7. #7
    Registered User
    Join Date
    Aug 2007
    Posts
    74

    Re: Please Help! Project Almost Complete. Need a little help please

    Hi,

    Here is the procedure.

    Changing application name

    1. In .mmp file
    Change TARGET from OldAppName.exe to NewAppName.exe

    START RESOURCE AppName.rss
    HEADER
    //TARGET AppName_0xE9950119 // Change to NewAppName
    TARGETPATH resource\apps
    END //RESOURCE

    START RESOURCE AppName_reg.rss
    TARGET AppName_0xE9950119_reg // Change to NewAppName_reg
    TARGETPATH \private\10003a3f\apps
    END //RESOURCE

    2. In OldAppName.rss

    RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
    {
    short_caption = “OldAppName”; // change to NewAppName
    caption_and_icon =
    CAPTION_AND_ICON_INFO
    {
    caption = “OldAppName”; // change to NewAppName

    number_of_icons = 1;
    icon_file = "\\resource\\apps\\OldAppName.mif"; // NewAppName.mif
    };
    }

    3. In Icons_scalable_dc.mk
    ICONTARGETFILENAME=$(TARGETDIR)\OldAppName.mif // NewAppName.mif

    4. In OldAppName_reg.rss file

    #include <OldAppName.rsg> // NewAppName.rsg

    UID2 KUidAppRegistrationResourceFile
    UID3 _UID3

    RESOURCE APP_REGISTRATION_INFO
    {
    app_file="OldAppName"; // NewAppName
    localisable_resource_file = "\\resource\\apps\\OldAppName"; // NewAppName
    localisable_resource_id = R_LOCALISABLE_APP_INFO;

    embeddability=KAppNotEmbeddable;
    newfile=KAppDoesNotSupportNewFile;
    }



    5. In COldAppNameAppUi
    Change this line where ever you find in your project
    #include <OldAppName.rsg> // NewAppName.rsg


    6. In .sis file
    ; standard SIS file header
    #{"OldAppName"},(0xE9950119),1,0,0
    // NewAppName

    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\OldAppName.exe" -"!:\sys\bin\OldAppName.exe"
    // Change to NewAppName.exe

    "$(EPOCROOT)Epoc32\data\z\resource\apps\OldAppName.rsc" -"!:\resource\apps\OldAppName.rsc"
    //Change to NewAppName.rsc

    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\OldAppName_reg.rsc" -"!:\private\10003a3f\import\apps\OldAppName_reg.rsc"
    // NewAppName_reg.rsc

    "$(EPOCROOT)Epoc32\data\z\resource\apps\OldAppName.mif" -"!:\resource\apps\ OldAppName.mif"
    // NewAppName.mif

    "..\help\AppName_0xE9950119.hlp" -"!:\resource\help\AppName_0xE9950119.hlp"

    7. In build_help.mk
    MAKMAKE :Old AppName.hlp # change to NewAppName.hlp

    AppName_0xE9950119.hlp : AppName.xml AppName.cshlp Custom.xml # change to NewAppName.hlp
    cshlpcmp AppName.cshlp
    ifeq (WINS,$(findstring WINS, $(PLATFORM)))
    copy AppName_0xE9950119.hlp $(EPOCROOT)epoc32\$(PLATFORM)\c\resource\help
    # change to NewAppName.hlp
    endif

    BLD : do_nothing

    CLEAN :
    del AppName_0xE9950119.hlp # change to NewAppName.hlp
    del AppName_0xE9950119.hlp.hrh # Change to NewAppName.hlp.hrh

    LIB : do_nothing

    CLEANLIB : do_nothing

    RESOURCE : do_nothing

    FREEZE : do_nothing

    SAVESPACE : do_nothing

    RELEASABLES :
    @echo AppName_0xE9950119.hlp # Change to NewAppName.hlp

    FINAL : do_nothing

    8. In OldAppName.cshlp

    <?xml version="1.0"?>
    <!DOCTYPE cshproj SYSTEM "/epoc32/tools/cshlpcmp/dtd/cshproj.dtd">
    <?xml:stylesheet href="/epoc32/tools/cshlpcmp/xsl/CSHproj.xsl" title="CS-Help project" type="text/xsl"?>
    <cshproj>
    <helpfileUID>0xE9950119</helpfileUID>
    <directories>
    <input></input>
    <output></output>
    <graphics></graphics>
    <working>temp\</working>
    </directories>
    <files>
    <source>
    <xmlfile>AppName.xml</xmlfile>
    </source>
    <destination> AppName.hlp</destination> // Change to NewAppName.hlp
    <customization>custom.xml</customization>
    </files>
    </cshproj>

    9. In OldAppName.xml

    <?xml version="1.0"?>
    <!DOCTYPE asptml SYSTEM "/epoc32/tools/cshlpcmp/dtd/asptml.dtd">
    <?xml:stylesheet href="/epoc32/tools/cshlpcmp/xsl/asptml.xsl" title="asptml" type="text/xsl"?>
    <asptml>
    <uid value="0xE9950119"/>
    <topic><category>AppName</category><topictitle>General Information</topictitle>
    <synonyms>General Information</synonyms>
    <context contextUID="General_Information"/>
    <index>General Information</index>
    <p>Insert your help here.</p>
    <p></p>
    </topic>
    </asptml>

    // Change to NewAppName

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

    Re: Please Help! Project Almost Complete. Need a little help please

    Does it happen in the emulator? Show your .mmp file and your _reg.rss file
    Does it happen in the device? Show your .pkg file

  9. #9
    Registered User
    Join Date
    Jun 2009
    Posts
    6

    Re: Please Help! Project Almost Complete. Need a little help please

    mmp file:
    TARGET YPagesForm.exe
    TARGETTYPE exe
    UID 0x100039CE 0xE004027F

    TARGETPATH \system\apps\YPages






    SOURCEPATH ..\src
    SOURCE YPages.cpp YPages_app.cpp
    SOURCE YPages_view.cpp YPages_ui.cpp YPages_doc.cpp dialog.cpp



    SYSTEMINCLUDE \epoc32\include
    USERINCLUDE ..\include


    LIBRARY euser.lib apparc.lib cone.lib eikcore.lib
    LIBRARY avkon.lib gdi.lib
    LIBRARY eikdlg.lib eikcoctl.lib

    _reg.rss file:

    // simpleExForm_reg.rss
    //
    // Copyright (c) Symbian Software Ltd 1999 - 2007. All rights reserved.
    //

    #include <AppInfo.rh>
    #include "YPagesUid.h"

    // KUidAppRegistrationResourceFile, and UID3, which is the application's UID.
    UID2 KUidAppRegistrationResourceFile
    UID3 YPAGESUID// application UID

    // Registration file need to containo an APP_REGISTRATION_INFO resource that
    // minimally needs to provide the name of the application binary (using the
    // app_file statement).
    RESOURCE APP_REGISTRATION_INFO
    {
    app_file = "YPagesForm"; // filename of application binary (minus extension)

    }

  10. #10
    Registered User
    Join Date
    Apr 2009
    Posts
    13

    Re: Please Help! Project Almost Complete. Need a little help please

    Th problem is coming on device or Emulator ? After renaming the files kindly check whether the path are correct in PKG.which name do u want to change ??? exe or caption/icon on device. WHere its showing the old name ?

  11. #11
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,563

    Re: Please Help! Project Almost Complete. Need a little help please

    One way I always find useful in such situations is use emulator to open the application in question, and using filemon i see what files its not finding, that gives me sufficient clue where I might have missed.

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

    Re: Please Help! Project Almost Complete. Need a little help please

    Quote Originally Posted by diwakar.sapan View Post
    mmp file:
    TARGET YellowPages.exe
    TARGETTYPE exe
    UID 0x100039CE 0xE004027F

    // this line is obsolete starting from S60 3rd edition TARGETPATH \system\apps\YPages





    SOURCEPATH ..\src
    SOURCE YPages.cpp YPages_app.cpp
    SOURCE YPages_view.cpp YPages_ui.cpp YPages_doc.cpp dialog.cpp



    SYSTEMINCLUDE \epoc32\include
    USERINCLUDE ..\include


    LIBRARY euser.lib apparc.lib cone.lib eikcore.lib
    LIBRARY avkon.lib gdi.lib
    LIBRARY eikdlg.lib eikcoctl.lib

    _reg.rss file:

    // simpleExForm_reg.rss
    //
    // Copyright (c) Symbian Software Ltd 1999 - 2007. All rights reserved.
    //

    #include <AppInfo.rh>
    #include "YPagesUid.h"

    // KUidAppRegistrationResourceFile, and UID3, which is the application's UID.
    UID2 KUidAppRegistrationResourceFile
    UID3 YPAGESUID// application UID

    // Registration file need to containo an APP_REGISTRATION_INFO resource that
    // minimally needs to provide the name of the application binary (using the
    // app_file statement).
    RESOURCE APP_REGISTRATION_INFO
    {
    app_file = "YPagesForm"; // filename of application binary (minus extension)

    }
    Actaully I do not see the place where you refer your .rss and _reg.rss files in the .mmp, but those references should be also replaced, and the files themselves have to be renamed (to YellowPages.rss and YellowPages_reg.rss)

  13. #13
    Registered User
    Join Date
    Jun 2009
    Posts
    6

    Re: Please Help! Project Almost Complete. Need a little help please

    Hi All

    I have changed the name of my app in YPages_reg.rss file but no change in the name.

    i am trying my app only on emulator. Please help me.

  14. #14
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,563

    Re: Please Help! Project Almost Complete. Need a little help please

    Quote Originally Posted by diwakar.sapan View Post
    Hi All

    I have changed the name of my app in YPages_reg.rss file but no change in the name.

    i am trying my app only on emulator. Please help me.
    Did you try what I suggested in my earlier post #11 ? It has always worked for me.

  15. #15
    Registered User
    Join Date
    Jun 2009
    Posts
    6

    Re: Please Help! Project Almost Complete. Need a little help please

    Hi Neil R.Bhasme -

    Sorry !
    but i didn't get your point, can you explain a little bit more

Similar Threads

  1. Not able to complete builds for any project
    By vattathara in forum Symbian
    Replies: 4
    Last Post: 2007-12-06, 11:32
  2. Import\Export Project Problem in Carbide
    By mohsin.sohail in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2006-07-17, 20:20
  3. Project help and advice.
    By anujsaboo in forum Mobile Java General
    Replies: 1
    Last Post: 2003-10-08, 13:04
  4. Project Help
    By anujsaboo in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2003-07-05, 08:55
  5. Help Please: Project: SMS + GPS system
    By Nokia_Archive in forum General Messaging
    Replies: 2
    Last Post: 2002-06-06, 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
  •  
×