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. Thanks for all your past and future contributions.


From 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 06:35.
67 page views in the last 30 days.