problem in .RSS file
| Tue, 2008-06-10 11:53 | |
|
|
hi all, i have created a view and written following code in the view CSubscriptionResultView. which is derived from CAknView. void CSubscriptionResultView::ConstructL()and written following code in the .rss file NAME HELLbut 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. 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... |






Forum posts: 110
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
Forum posts: 683
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.Forum posts: 2
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!
Forum posts: 159
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++
Forum posts: 683
Please post the full rss file.
Forum posts: 159
// ====================================================================
// 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++
Forum posts: 683
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?