Ecmt测试,出现“从“link.exe”返回的结果有误。”的错误提示
平台:
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()函数,程序就不能编译通过,什么原因呢?
请达人指教。