×
Namespaces

Variants
Actions

如何不经提示对话框而生成一个internet连接

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

文章
huwell 在 29 Jun 2007 创建
最后由 hamishwillee 在 15 Dec 2011 编辑
  • 开发伙伴平台:

60系列开发平台 2.0


  • 说明:

下列代码演示了如何不綺提示对话框而生成一个连接。你需要知道具体接入点的IAP ID。

RSocketServ socketServ;
 
RConnection connection;
 
User::LeaveIfError(socketServ.Connect());
 
User::LeaveIfError(connect.Open(socketServ));
 
TCommDbConnPref
 
pref;pref.SetIapId(4); // IAP ID for connection to be used
 
pref.SetDialogPreference( ECommDbDialogPrefDoNotPrompt );
 
pref.SetDirection( ECommDbConnectionDirectionOutgoing );
 
connection.Start(pref);
This page was last modified on 15 December 2011, at 10:46.
63 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×