symbian中如何启动一个console程序

一:

Debugging console apps with 3rd edition emulator

Symbian console applications are handle for testing. Debugging them with the 2nd edition emulator was obvioius. With 3rd edition, there is a trick. Instead of the epoc.exe application, you need to run eshell.exe. This will bring up a command line. Enter the name of the executable at the prompt and away you go.


How does one configure the IDE to run a console applciation? With Carbide, select the "Debug..." memu item on the debug popup on the toolbar. This will bring up a dialog to configure the debug session. Select the "Main" tab. Edit the "Emulator or host application" from epoc.exe to eshell.exe.

Code Warrior is similar. It is in the setttings dialog but it is tucked away under Target->Runtime Settings. Update the "Host Application for Libraries & Code Resources" field.

另外,根据使用经验,直接打开eshell.exe仍然会启动有界面的模拟器,模拟器的界面会覆盖掉eshell的界面。可以通过快捷键Alt+Ctrl+Shift+T切换任务。模拟器中快捷键的用法可以在

http://www.symbian.com/developer/techlib/v70sdocs/doc_source/ToolsAndUtilities/Emulator/emulator/Debugging.guide.html

查到。此外,可以在启动eshell的时候加入参数"-dtextshell --"只启动eshell而不带有界面。这个设置可以在CodeWarrior的Target->Runtime Settings->Program Arguments更改。

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/primer_programer/archive/2009/04/23/4104227.aspx

 

二:

控制台程序默认无法从模拟器启动的,想要在模拟器程序列表中看到控制台程序,我的做法是给程序增加一个注册文件。增加一个yourapp_reg.rss:

RESOURCE APP_REGISTRATION_INFO

{

app_file="YourApp";

embeddability=KAppNotEmbeddable;

newfile=KAppDoesNotSupportNewFile;

}
复制代码
mmp中:

SOURCEPATH          ../data

START RESOURCE        yourapp_reg.rss

TARGET yourapp_reg

TARGETPATH           /private/10003a3f/apps

END //RESOURCE
复制代码
build后启动模拟器,在程序列表中就可以看到控制台程序图标了。

 

三:

在epoc.ini中加入textshell,然后ide调试程序,出现控制台界面模拟器,键入程序名称,回车。


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/lmyuanhang/archive/2009/10/27/4734096.aspx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值