×
Namespaces

Variants
Actions
Revision as of 09:35, 15 December 2011 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

不綺用户提示创建一个Internet连接

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

文章
User:Jiangbaolan 在 02 Apr 2009 创建
最后由 hamishwillee 在 15 Dec 2011 编辑

下面的代码演示了如何创建一个Internet连接,而不提示用户 使用哪种方法连接或者选择哪个GPRS接入点. 你需要知道你想 使用的那个Internet接入点(IAP)的标示(ID)。

Code: 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 09:35.
81 page views in the last 30 days.
×