For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > March 2006 > wm5 & MFC8 & How to initiate internet connection ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author wm5 & MFC8 & How to initiate internet connection ?
mmika

2006-03-19, 11:15 pm

Hello,

What is the "highlevel" , sophisticated way to initiate internet-connection with wm5 & MFC-project?

I thought that highlevel API's such as URLDownloadToFile() would automaticly handle connectionmanager but apparently not.

I've been reading docs and there seems to be different ways for this. I don't want/need to go to lowlevel and I am not interested how user connectes to internet nor I don't want to handle the different internet "gateways" myself but leave all that to OS or User. Is this possible?

Is there any highlevel API like DoConnectToInternet() ;)
Which checks if there is connection and uses that , if not selects the "best" connection route or prompts user what route he wishes to use? Like the way PocketIE and Outlook does.

Thanks.
riki

2006-03-21, 3:57 am

mmika wrote:
> Hello,
>
> What is the "highlevel" , sophisticated way to initiate
> internet-connection with wm5 & MFC-project?
>
> I thought that highlevel API's such as URLDownloadToFile() would
> automaticly handle connectionmanager but apparently not.
>
> I've been reading docs and there seems to be different ways for this. I
> don't want/need to go to lowlevel and I am not interested how user
> connectes to internet nor I don't want to handle the different internet
> "gateways" myself but leave all that to OS or User. Is this possible?
>
> Is there any highlevel API like DoConnectToInternet() ;)
> Which checks if there is connection and uses that , if not selects the
> "best" connection route or prompts user what route he wishes to use?
> Like the way PocketIE and Outlook does.


have a look at the cmtime sample in the SDK which has a nice
EstablishConnection function you could use.

Riki

----
Posted via MSDN newgroups :
http://www.microsoft.com/communitie...ps/default.mspx
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com