I'm coding an application which opens a TCP/IP connection when an SMS arrives to phone. Server address, port and access point for connection are defined in settings menu and can be changed by user.
TCP/IP connection and everything works well but when I start the connection at startup of the application I always get a access point selection dialog. I'm using RGenericAgent::StartOutgoing() to start the connection. I'd like to automatically (with no prompt) use access point specified in the settings by user.
I have a list of access points (CApListItemList) an I would like to open connection using particular access point (CApListItem) from the list.
How can I do this?
RE: setting access point for tcp/ip connection on 7650
2002-11-11, 12:21#2
you need to modify comm db of 7650 device
1. Get cdbv2.dat from c:\system\data folder of the device.
2. Place this cdbv2.dat file under c:\sysmtem\data folder of your installed 7650 sdk on PC.
3. goto 6.1\shared\tools folder and run setupcomm.bat file.
4. you will see the editior window for cdbv2.dat.
press 1) Outgoing connection prefs
and then modify
DialogPref: <do not prompt > press enter to save it
and select your IAP
come out of editior..
5. place cdbv2.dat back into the device
now run your app, access point window will not popup
i hope it helps..
-nitin
But it will prevent it permanently
2003-04-25, 09:57#3
Hi! Form my phone settings i can only get the IAP name, but according to ur approach i need to get the id, so do u know how can i get the id? Thanks a lot!
Regards,
xiaoyu
error C2664: 'void __thiscall RGenericAgent::StartOutgoing(class CStoreableOverrideSettings &,class TRequestStatus &)' : cannot convert parameter 1 from 'class CCommDbOverrideSettings' to 'class CSt
oreableOverrideSettings &'
A reference that is not to 'const' cannot be bound to a non-lvalue