Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ and VB Pin
Maximilien21-Jun-04 5:59
Maximilien21-Jun-04 5:59 
GeneralRe: VC++ and VB Pin
Andrew Quinn AUS21-Jun-04 6:10
Andrew Quinn AUS21-Jun-04 6:10 
GeneralRe: VC++ and VB Pin
David Crow21-Jun-04 6:36
David Crow21-Jun-04 6:36 
GeneralRe: VC++ and VB Pin
Kevin McFarlane21-Jun-04 8:23
Kevin McFarlane21-Jun-04 8:23 
GeneralRe: VC++ and VB Pin
palbano21-Jun-04 8:53
palbano21-Jun-04 8:53 
QuestionHow to detect if you are connected to internet? Pin
kfaday21-Jun-04 4:14
kfaday21-Jun-04 4:14 
AnswerRe: How to detect if you are connected to internet? Pin
22491721-Jun-04 5:14
22491721-Jun-04 5:14 
GeneralRe: How to detect if you are connected to internet? Pin
kfaday21-Jun-04 5:35
kfaday21-Jun-04 5:35 
thanks!


i looked it up in msdn ( http://msdn.microsoft.com/library/?url=/library/en-us/wininet/wininet/internetgetconnectedstate.asp) , and i don't understand the following:



lpdwFlags
[out] Pointer to a variable that receives the connection description. This parameter can be one or more of the following values.
Value Meaning
INTERNET_CONNECTION_CONFIGURED Local system has a valid connection to the Internet, but it might or might not be currently connected.
INTERNET_CONNECTION_LAN Local system uses a local area network to connect to the Internet.
INTERNET_CONNECTION_MODEM Local system uses a modem to connect to the Internet.
INTERNET_CONNECTION_MODEM_BUSY No longer used.
INTERNET_CONNECTION_OFFLINE Local system is in offline mode.
INTERNET_CONNECTION_PROXY Local system uses a proxy server to connect to the Internet.
INTERNET_RAS_INSTALLED Local system has RAS installed.






the following code always returns online.. any ideas?

unsigned long *a;
a=(unsigned long *)malloc(sizeof(unsigned long));
if (TRUE==InternetGetConnectedState(a,0))
    AfxMessageBox("online");
else
    AfxMessageBox("offline");

AnswerRe: How to detect if you are connected to internet? Pin
David Crow21-Jun-04 6:44
David Crow21-Jun-04 6:44 
GeneralRe: How to detect if you are connected to internet? Pin
vcplusplus21-Jun-04 7:34
vcplusplus21-Jun-04 7:34 
GeneralRe: How to detect if you are connected to internet? Pin
David Crow21-Jun-04 8:28
David Crow21-Jun-04 8:28 
AnswerRe: How to detect if you are connected to internet? Pin
Michael Dunn21-Jun-04 16:57
sitebuilderMichael Dunn21-Jun-04 16:57 
GeneralRe: How to detect if you are connected to internet? Pin
palbano21-Jun-04 17:24
palbano21-Jun-04 17:24 
GeneralRe: How to detect if you are connected to internet? Pin
kfaday22-Jun-04 2:04
kfaday22-Jun-04 2:04 
QuestionSetWorldTransform()/SetGraphicsMode() bug in printing? Pin
CodeHead21-Jun-04 4:01
CodeHead21-Jun-04 4:01 
Generalcbt hook for avoid title bar in all windows Pin
Oscarin21-Jun-04 3:56
Oscarin21-Jun-04 3:56 
GeneralRe: cbt hook for avoid title bar in all windows Pin
gamitech22-Jun-04 13:31
gamitech22-Jun-04 13:31 
GeneralNeed a little help guys Pin
mayanxn0321-Jun-04 3:56
mayanxn0321-Jun-04 3:56 
GeneralRe: Need a little help guys Pin
Johnny ²21-Jun-04 4:53
Johnny ²21-Jun-04 4:53 
GeneralDisable Special key's Pin
Larsson21-Jun-04 3:47
Larsson21-Jun-04 3:47 
GeneralRe: Disable Special key's Pin
V.21-Jun-04 5:11
professionalV.21-Jun-04 5:11 
GeneralRe: Disable Special key's Pin
Trollslayer21-Jun-04 5:22
mentorTrollslayer21-Jun-04 5:22 
GeneralRe: Disable Special key's Pin
David Crow21-Jun-04 6:47
David Crow21-Jun-04 6:47 
GeneralRe: Disable Special key's Pin
Trollslayer21-Jun-04 7:50
mentorTrollslayer21-Jun-04 7:50 
GeneralRe: Disable Special key's Pin
David Crow21-Jun-04 8:26
David Crow21-Jun-04 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.