Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: please help me. Pin
David Crow24-Jan-05 2:57
David Crow24-Jan-05 2:57 
QuestionHow to find if a machine is having internet connection. Pin
RuchirD23-Jan-05 16:50
RuchirD23-Jan-05 16:50 
AnswerRe: How to find if a machine is having internet connection. Pin
ThatsAlok23-Jan-05 17:45
ThatsAlok23-Jan-05 17:45 
GeneralRe: How to find if a machine is having internet connection. Pin
Ryan Binns23-Jan-05 17:51
Ryan Binns23-Jan-05 17:51 
GeneralRe: How to find if a machine is having internet connection. Pin
ThatsAlok23-Jan-05 18:29
ThatsAlok23-Jan-05 18:29 
GeneralRe: How to find if a machine is having internet connection. Pin
RuchirD23-Jan-05 18:37
RuchirD23-Jan-05 18:37 
GeneralRe: How to find if a machine is having internet connection. Pin
ThatsAlok23-Jan-05 18:53
ThatsAlok23-Jan-05 18:53 
GeneralRe: How to find if a machine is having internet connection. Pin
RuchirD23-Jan-05 19:43
RuchirD23-Jan-05 19:43 
This function initializes an application’s use of the Windows CE Internet functions."

I think there is some confusion. Windows function call InternetOpenURL uses Handle that is returned by the function call InternetOprn(...)
Pls see below

InternetOpenUrl
Opens a resource specified by a complete FTP, Gopher, or HTTP URL.

HINTERNET InternetOpenUrl(
HINTERNET hInternet,
LPCTSTR lpszUrl,
LPCTSTR lpszHeaders,
DWORD dwHeadersLength,
DWORD dwFlags,
DWORD_PTR dwContext
);

Parameters
hInternet
[in] Handle to the current Internet session. The handle must have
been returned by a previous call to InternetOpen

Plz correct me if I am wrong.
What I could conclude from the MSDN excerpt is that "InternetOpen returns handle to the internet session if connected and if not it will return null, using this handle we can open an URL using InternetOpenURL() function".

Also the exact use case is "check if user is connected to the internet".

Thanks n Regards
RuchirDhar Dwivedi.

RuchirDhar Dwivedi
Software Engineer
Windowmaker Software Pvt.Ltd.
Baroda, India.
GeneralRe: How to find if a machine is having internet connection. Pin
ThatsAlok23-Jan-05 20:00
ThatsAlok23-Jan-05 20:00 
GeneralRe: How to find if a machine is having internet connection. Pin
RuchirD23-Jan-05 21:01
RuchirD23-Jan-05 21:01 
AnswerRe: How to find if a machine is having internet connection. Pin
Michael Dunn23-Jan-05 21:03
sitebuilderMichael Dunn23-Jan-05 21:03 
AnswerRe: How to find if a machine is having internet connection. Pin
David Crow24-Jan-05 2:58
David Crow24-Jan-05 2:58 
GeneralAdding tab control to about dialog Pin
Jack_pt23-Jan-05 16:12
Jack_pt23-Jan-05 16:12 
GeneralVC++ app execution slower than VB Pin
bgm5623-Jan-05 15:57
bgm5623-Jan-05 15:57 
GeneralRe: VC++ app execution slower than VB Pin
David Crow24-Jan-05 3:03
David Crow24-Jan-05 3:03 
GeneralRe: VC++ app execution slower than VB Pin
bgm5624-Jan-05 6:44
bgm5624-Jan-05 6:44 
GeneralRe: VC++ app execution slower than VB Pin
David Crow24-Jan-05 7:19
David Crow24-Jan-05 7:19 
GeneralRe: VC++ app execution slower than VB Pin
bgm5625-Jan-05 2:37
bgm5625-Jan-05 2:37 
GeneralRe: VC++ app execution slower than VB Pin
David Crow25-Jan-05 3:00
David Crow25-Jan-05 3:00 
GeneralRe: VC++ app execution slower than VB Pin
rwestgraham26-Jan-05 14:59
rwestgraham26-Jan-05 14:59 
GeneralRe: VC++ app execution slower than VB Pin
bgm563-Feb-05 16:10
bgm563-Feb-05 16:10 
GeneralValidate a DLL Pin
paulb23-Jan-05 15:35
paulb23-Jan-05 15:35 
Questionimport VB ocx to VC++? Pin
Michael Flood23-Jan-05 12:34
Michael Flood23-Jan-05 12:34 
AnswerRe: import VB ocx to VC++? Pin
Mircea Puiu25-Jan-05 7:21
Mircea Puiu25-Jan-05 7:21 
GeneralRe: import VB ocx to VC++? Pin
Anonymous25-Jan-05 14:17
Anonymous25-Jan-05 14:17 

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.