Hi all,
I want to create a access point and I am using the following code...

TBuf8<100> username=_L8("hareesh");
TBuf8<100> password=_L8("temporary");
TBuf8<100> wapgatewayaddr=_L8("192.168.1.9");
TUint32 iapId=21;
TInt error;
TInt gprsId=0;
TInt nId=0;


CCommsDatabase* comDB=CCommsDatabase::NewL(EDatabaseTypeIAP);
CleanupStack::PushL(comDB);

CCommsDbTableView* view ;

view = comDB->OpenTableLC(TPtrC(OUTGOING_GPRS));

error = view->InsertRecord(iapId);
view->WriteTextL(TPtrC(COMMDB_NAME),_L("hareesh_ap"));
view->WriteTextL(TPtrC(IAP_SERVICE_TYPE), TPtrC(OUTGOING_GPRS));
view->WriteUintL(TPtrC(IAP_SERVICE), gprsId);
view->WriteTextL(TPtrC(ISP_LOGIN_NAME),username);
view->WriteTextL(TPtrC(ISP_LOGIN_PASS),password);
view->WriteTextL(TPtrC(SERVICE_IP_GATEWAY),wapgatewayaddr);
error = view->PutRecordChanges();

CleanupStack::PopAndDestroy(2);


It is crating access point but I am unable to add login name,password and wapgateway address. It is giving "Not supported" mesage in both the emulator and device.

I will be greatful if anybody can help me in this regard.

Thanks and regards,
hareesh.