Read-only archive of the All About Symbian forum (2001–2013) · About this archive

create a new access

0 replies · 1,561 views · Started 29 March 2007

hi
I'm working on UIQ environment,
And when i try to create a new access (see the attached code) my aplication crushed.
Someone please coul'd help me??

--- h file -----
RConnection* ipConnect;
RSocketServ iSocketServer;
--- h file -----

--- cpp file ---
iSocketServer.Connect(KESockDefaultMessageSlots*2);
ipConnect = new (ELeave) RConnection();
ipConnect->Open(iSocketServer);

iIapId=aIapId;
iBearer=KCommDbBearerUnknown;

iPref.SetIapId(iIapId);
iPref.SetBearerSet(iBearer);
iPref.SetDirection(ECommDbConnectionDirectionOutgoing);
iPref.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);

ipConnect->Start(iPref, iStatus);
SetActive();
--- cpp file ---