problem in .RSS file

Login to reply to this topic.
Tue, 2008-06-10 11:53
Joined: 2007-07-31
Forum posts: 159

hi all,

i have created a view and written following code in the view CSubscriptionResultView. which is derived from CAknView.

void CSubscriptionResultView::ConstructL()
{
        BaseConstructL(R_MK_SUBSCRIPTION_RESULTVIEW);
       
    iAudioPlayerEngine = CAudioPlayerEngine::NewL(*this);
    //Costruct the XML Handler
        iXmlHandler = CXmlHandler::NewL( *this );       
}

and written following code in the .rss file

NAME HELL

#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.rh>
#include <avkon.rsg>

#include "mk.hrh"


// ---------------------------------------------------------
//  
//    Define the resource file signature
//    This resource should be empty.
//
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE { }

// ---------------------------------------------------------
//  
//    Default Document Name
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_default_document_name { buf=""; }

// ---------------------------------------------------------
//  
//    Define default menu and CBA key.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
    {
  
    }

RESOURCE AVKON_VIEW r_mk_mainview
    {
    
    }
       
RESOURCE AVKON_VIEW r_mk_subscriptionview
    {
    
    }
   
RESOURCE AVKON_VIEW r_mk_subscription_resultview
    {
     
    }

but when i compile the application it gives following error.

unidentified identifier R_MK_SUBSCRIPTION_RESULTVIEW

and in the .rsg file R_MK_SUBSCRIPTION_RESULTVIEW is not defined.
but if i define it in the .rsg file the program terminate on run.

Please give me some clue to remove this problem.

Thanks in advance.


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++


Wed, 2008-06-11 06:45
Joined: 2004-07-09
Forum posts: 110
Re: problem in .RSS file

Hi,

Delete the existing .rsg file and then try to compile .rss.

May be rss file have some compilation problem, because of it .rsg file is not updates.
Try out following code, Adding constant manually not solve the problem.

RESOURCE AVKON_VIEW r_multiviews_view2
{
menubar = r_multiviews_menubar2;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
RESOURCE MENU_BAR r_multiviews_menubar2
{
titles =
{
MENU_TITLE {menu_pane = r_multiviews_menu2;}
};
}
RESOURCE MENU_PANE r_multiviews_menu2
{
items =
{
MENU_ITEM {command = EMultiViewsSwitchToView1; txt = "Go to View 1";},
MENU_ITEM {command = EMultiViewsCommand1; txt = "Say hello";},
MENU_ITEM {command = EAknSoftkeyExit; txt = "Exit";}
};
}

Dipak Baviskar


DipakBaviskar

Wed, 2008-06-11 09:56
Joined: 2003-12-05
Forum posts: 683
Re: problem in .RSS file

This happens to me when I start from an old application or example project and rename the files of the project. E.g. example.rss becomes worldsbestapplicationever.rss. I have built the example before renaming files, so the rsg file gets generated. Then I change the file names but forget to rename the #include <example.rsg> to #include < worldsbestapplicationever.rsg>. The old generated IDs are in the old example.rsg file but the new resource IDs are missing -- change the example.rsg to worldsbestapplicationever.rsg in all your .cpp files where you need the resource IDs.

Wed, 2008-06-11 11:03
Joined: 2008-06-11
Forum posts: 2
Re: problem in .RSS file


hi brajesh,

why don't you try re-importing the mmp file into your IDE, or compiling from command line.
this should solve your problem.

I also don't recommend editing the rsg file directly. This file is constructed internally.

Good luck!

Fri, 2008-06-13 08:17
Joined: 2007-07-31
Forum posts: 159
Re: problem in .RSS file

I HAVE APPLIED ALL YOUR METHODS BUT STILL GIVES ERROR UNDEFINED IDENTIFIER.
Brajesh


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++

Fri, 2008-06-13 08:42
Joined: 2003-12-05
Forum posts: 683
Re: problem in .RSS file

Please post the full rss file.

Fri, 2008-06-13 12:16
Joined: 2007-07-31
Forum posts: 159
Re: problem in .RSS file

// ====================================================================
// File: KarokeForMobile.rss
// Created: 06/09/08
// Author:
// Copyright (c): Rapidsoft Technologies, All rights reserved
// ==================================================================== */

NAME HELL

#include
#include
#include
#include

#include "KarokeForMobile.hrh"

// ---------------------------------------------------------
//
// Define the resource file signature
// This resource should be empty.
//
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE { }

// ---------------------------------------------------------
//
// Default Document Name
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_default_document_name { buf=""; }

// ---------------------------------------------------------
//
// Define default menu and CBA key.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
// menubar = r_KarokeForMobile_menubar;
// cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}

RESOURCE AVKON_VIEW r_mk_mainview
{
// menubar = r_Karoke_mainview_menubar;
//cba = R_AVKON_SOFTKEYS_OPTIONS_CANCEL;
}

RESOURCE AVKON_VIEW r_mk_subscriptionview
{
//menubar = r_Karoke_subscriptionview_menubar;
// cba = R_AVKON_SOFTKEYS_OPTIONS_CANCEL;
}
RESOURCE AVKON_VIEW r_mk_subscriptionresultview
{
//menubar = r_Karoke_subscriptionview_menubar;
// cba = R_AVKON_SOFTKEYS_OPTIONS_CANCEL;
}
RESOURCE AVKON_VIEW r_mk_songcategoryview
{
//menubar = r_Karoke_subscriptionview_menubar;
// cba = R_AVKON_SOFTKEYS_OPTIONS_CANCEL;
}


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++

Sat, 2008-06-14 08:04
Joined: 2003-12-05
Forum posts: 683
Re: problem in .RSS file

So those resource definitions are empty. Maybe the resouce compiler does not create any identifiers to empty resources? You do #include <KarokeForMobile.rsg> in your cpp code where you want to use these resources?

  • Login to reply to this topic.