Ecmt测试,出现“从“link.exe”返回的结果有误。”的错误提示

hareast 2007-08-27 04:03:31
平台:
VS2003+S60,9.1
平台的搭建应该没有什么问题,标准的helloworld程序可以正常运行。


参照SDKhelp的Remote Logging这一章节,进行Ecmt的使用测试。
首先生成了一个helloworld程序,工程名TestEcmt6,直接编译运行正常。
然后在.mmp中加入

LIBRARY ecmtclient.lib

修改文件TestEcmt6AppUi.h
#include <EcmtClient.h>
.......
class CTestEcmt6AppUi : public CAknAppUi
{
.............
private:
CTestEcmt6AppView* iAppView;
REcmt iEcmt;
}
只修改这么多的时候,为CTestEcmt6AppUi申请一个REcmt成员iEcmt是,编译依然可以通过,
修改文件TestEcmt6AppUi.cpp
void CTestEcmt6AppUi::ConstructL()
{
// Initialise app UI with standard value.
BaseConstructL();
//Ecmt conncet;
TInt temp=iEcmt.Connect();
..............
}

CTestEcmt6AppUi::~CTestEcmt6AppUi()
{
iEcmt.Close();
............
}

一旦调用Connect()函数,程序就不能编译通过,什么原因呢?
请达人指教。
...全文
84 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,119

社区成员

发帖
与我相关
我的任务
社区描述
塞班系统(Symbian系统)是塞班公司为手机而设计的操作系统,它的前身是英国宝意昂公司的 EP ( Electronic Piece of cheese)操作系统。
社区管理员
  • Symbian社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧