carbide c++ 得到wap接入点信息

FingerStyle 2010-03-26 12:15:29
TUint32 serviceId;
User::LeaveIfError(connection.GetIntSetting(_L("IAP\\IAPService"), serviceId));

HBufC* serviceType = HBufC::NewL(KCommsDbSvrMaxFieldLength);
//CleanupStack::PushL(serviceType);
TPtr serviceTypePtr = serviceType->Des();

User::LeaveIfError(connection.GetDesSetting(_L("IAP\\IAPServiceType"), serviceTypePtr));

CCommsDatabase* commDB=CCommsDatabase::NewL(EDatabaseTypeUnspecified);
//CleanupStack::PushL(commDB);

CCommsDbTableView* tableView = commDB->OpenViewOnProxyRecordLC(serviceId, serviceTypePtr);
//CleanupStack::PushL(tableView);

TInt error = tableView->GotoFirstRecord();
if (error == KErrNone)
{
HBufC* serverName = tableView->ReadLongTextLC(TPtrC(PROXY_SERVER_NAME));
//CleanupStack::PushL(serverName);

QString tmpName((QChar*)serverName->Des().Ptr(), serverName->Length());
strServerName = tmpName;
tableView->ReadUintL(TPtrC(PROXY_PORT_NUMBER), nServerPort);
}
//CleanupStack::PopAndDestroy(4);

CleanupStack:: 相关的代码添加之后 程序运行之后就消失了, 上面//的部分 有什么问题吗
...全文
191 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
FingerStyle 2010-03-26
  • 打赏
  • 举报
回复
void IapManager::getWapProxyServerInfo(QString& strServerName, unsigned long int& nServerPort)
bsr2009 2010-03-26
  • 打赏
  • 举报
回复
zhenyunyuan 2010-03-26
  • 打赏
  • 举报
回复
顶了》》》》
FingerStyle 2010-03-26
  • 打赏
  • 举报
回复
没人 ?
jmulxg 2010-03-26
  • 打赏
  • 举报
回复
QT没做过。。。
FingerStyle 2010-03-26
  • 打赏
  • 举报
回复
顶起~~~

3,120

社区成员

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

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