http://discussion.forum.nokia.com/forum/showthread.php?p=715414#post715414
http://discussion.forum.nokia.com/forum/showthread.php?t=149693
1.在应用程序A中,如何创建应用程序或者控制台程序 B,见
测试过 ,都可以用
2.A向B传递参数
1)B已经在运行, 通过 task.SendMessage( TUid::Uid(1) , *pBuf ) ;
那么可以
在B 中接受信息,这个网上 很多啦。
但是我做的时候 始终不调用 HandleMessageL
最后发现 B 原来用模板生产的 *Ui 都是从 CAknAppUi 继承来的,而 CAknAppUi 根本不包含 HandleMessageL ,所以应该改为 从CEikAppUi 继承来的。
如果还不能 有说是 在A中加入能力 SwEvent TrustUI ,可是我在 测试时 (模拟器) 发现根本不需要。这跟版本有关,2版需要,3版不需要,不行你就加上试试。真机 没测过。
http://discussion.forum.nokia.com/forum/showthread.php?p=715414#post715414
http://discussion.forum.nokia.com/forum/showthread.php?t=149693
http://discussion.forum.nokia.com/forum/showthread.php?t=145548
这三个是讨论帖子,有点用。
3.当B是控制台 程序时 ,以上方式都不能工作,没有UI,可以参考
» Symbian OS v9.2 » Symbian OS guide » System libraries » Using BAFL » Command Line Parsing » Command Line Parsing Overview
http://discussion.forum.nokia.com/forum/showthread.php?t=158963
说明 必须重载 ProcessCommandParametersL,可是如何重载啊?
RProcess::SetParameterL
CApaCommandLine::SetProcessEnvironmentL
and to retrieve the parameters from the new process:
User::GetTIntParameter()
User::GetDesParameter()
You can also pass kernel handles into the newly created process, if that's what you want to do.