Symbian 2nd 项目转换为3rd项目
从第二版项目转换到第三版项目时有以下几个步骤:
一、修改MMP文件,主要包括:目标文件类型,SECUREID,EPOCSTACKSIZE,资源文件声明, _reg.rss文件声明
二、资源RSS文件,其中要添加 LOCALISABLE_APP_INFO 类型资源,需要 #include <appinfo.rh>
资源声明举例如下:
RESOURCE LOCALISABLE_APP_INFO r_conslauncher_localisable_app_info
{
short_caption = qtn_hewb_short_caption_string;
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = qtn_hewb_caption_string;
};
}
其中包含了程序长名和短名以及图标
三、增加_reg.rss文件,内容参照现有3RD项目的相应文件,举例如下:
#include <appinfo.rh>
#include <conslauncher.rsg>
UID2 KUidAppRegistrationResourceFile
UID3 0x101ffabf
RESOURCE APP_REGISTRATION_INFO
{
app_file="conslauncher";
localisable_resource_file = "//resource//apps//conslauncher";
localisable_resource_id = R_CONSLAUNCHER_LOCALISABLE_APP_INFO;
embeddability=KAppNotEmbeddable;
newfile=KAppDoesNotSupportNewFile;
}