Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

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

From 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.
26 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.

×