Discussion Board
Why not connect the gprs network?
2005-03-10, 09:14
#1
Registered User
I test my code in example project(IAPConnect )
in appui.cpp
case EIAPConnectCmdConnectGPRS:
{
iEngine->SetConnectionPreferences(ECommDbBearerGPRS, EFalse,1);
iEngine->ConnectL();
iAppContainer->DrawNow();
break;
}
SetConnectionPreferences(
TUint aBearer,
TBool aDialog,
TUint32 aIapId)
{
iPref.SetDirection(ECommDbConnectionDirectionOutgoing);
if (aDialog)
{
iPref.SetDialogPreference(ECommDbDialogPrefPrompt);
}
else
{
iPref.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
}
iPref.SetIapId(aIapId);
iPref.SetBearerSet(aBearer);
iPref.SetDirection(ECommDbConnectionDirectionOutgoing);
When calling the function, it can't create a connection. why?
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules