|
Posted by Peter on June 11, 2005, 10:03 pm
Please log in for more thread options
Hi there,
My application periodically uses the wininet functions to access a web site
to fetch some data, either via ActiveSync or GPRS. For ActiveSync, it works
perfectly but GPRS is the more important case.
For GPRS, I currently establish the internet connection manually. I've used
both Connection Manager and RAS. Both more or less work, however neither
works satisfactorily (outgoing phone calls cause major problems - app can't
make a GPRS connection after an outgoing phone call).
My question is this:
Is there a way of using the wininet functions so that establishment of the
default CM connection to the Internet happens automatically based on the user
configuration ? (Isn't that the whole point of Connection Manager ?)
Ie. why doesn't CM automatically establish the default internet connection
when a wininet function like InternetOpenURL() is called ? Why do I even
have to muck around with RAS and CM ?
The wording of the user data settings implies that this behaviour should be
available, so I assume I am not using the wininet functions correctly. Also,
this is commonly seen on desktop PC's - when appropriately configured,
opening the browser (appears to ?) automatically trigger establishment of a
dial up session to your ISP.
Device-wise, I find the same behaviour across Smartphone 2002 and 2003; PPC
2002 and 2003. (I am using HTC devices; tanager, voyager, himalaya and
feeler).
I use the plain old Win32 C APIs - if you post any compact framework code, I
won't be able to understand it !
Thanks in advance for any help,
Peter Donnelly
|