Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: two modal dialogs Pin
Tomasz Sowinski4-Sep-02 0:41
Tomasz Sowinski4-Sep-02 0:41 
GeneralRe: two modal dialogs Pin
Luis Reina4-Sep-02 0:38
Luis Reina4-Sep-02 0:38 
GeneralRe: two modal dialogs Pin
Joaquín M López Muñoz4-Sep-02 0:35
Joaquín M López Muñoz4-Sep-02 0:35 
GeneralRe: two modal dialogs Pin
Luis Reina4-Sep-02 0:41
Luis Reina4-Sep-02 0:41 
GeneralRe: two modal dialogs Pin
Tomasz Sowinski4-Sep-02 0:40
Tomasz Sowinski4-Sep-02 0:40 
GeneralRe: two modal dialogs Pin
Joaquín M López Muñoz4-Sep-02 0:40
Joaquín M López Muñoz4-Sep-02 0:40 
GeneralPrinting HTML/MIME image in Outlook Pin
Hel4-Sep-02 0:23
Hel4-Sep-02 0:23 
QuestionHow do check if i am online Pin
Anonymous4-Sep-02 0:04
Anonymous4-Sep-02 0:04 
hello,

how do i check if i am connected to the internet ? so far i've found 2
ways to do that.
- InternetAttemptConnection
but this works only for modem conncections
- InternetCheckConnection
works for nearly all types of connections, but not always Frown | :-(

is there any 100% version (proxy, firewall .... )

Thanks

here is my solution:



// worker thread
BOOL WINAPI IsConnected()
{
do {
#ifdef ADSL
g_IsConnected=InternetCheckConnection ("http://www.google.com",
FLAG_ICC_FORCE_CONNECTION ,0);
#elseif
if(InternetAttemptConnect(0) == ERROR_SUCCESS) g_IsConnected = true;
else g_IsConnected = false;
#endif
Sleep(2500);
} while(1);
}
AnswerRe: How do check if i am online Pin
Jawache4-Sep-02 0:57
Jawache4-Sep-02 0:57 
GeneralRe: How do check if i am online Pin
Anonymous4-Sep-02 1:04
Anonymous4-Sep-02 1:04 
AnswerHere's how Pin
Ravi Bhavnani4-Sep-02 10:12
professionalRavi Bhavnani4-Sep-02 10:12 
Generalperformance graph Pin
Vikash Dubey3-Sep-02 23:55
Vikash Dubey3-Sep-02 23:55 
GeneralRe: performance graph Pin
Tomasz Sowinski3-Sep-02 23:59
Tomasz Sowinski3-Sep-02 23:59 
GeneralRe: performance graph Pin
Vikash Dubey4-Sep-02 7:06
Vikash Dubey4-Sep-02 7:06 
GeneralRe: performance graph Pin
Pavel Klocek4-Sep-02 0:10
Pavel Klocek4-Sep-02 0:10 
GeneralRe: performance graph Pin
Vikash Dubey4-Sep-02 7:09
Vikash Dubey4-Sep-02 7:09 
QuestionIs there any timeOut Mechanism in Winsock Programming? Pin
anju3-Sep-02 23:43
anju3-Sep-02 23:43 
AnswerRe: Is there any timeOut Mechanism in Winsock Programming? Pin
Le centriste4-Sep-02 3:51
Le centriste4-Sep-02 3:51 
GeneralRe:Thanks. Pin
anju4-Sep-02 23:23
anju4-Sep-02 23:23 
QuestionHow to identify motherboard? Pin
Anonymous3-Sep-02 22:54
Anonymous3-Sep-02 22:54 
AnswerRe: How to identify motherboard? Pin
Mike Nordell3-Sep-02 23:42
Mike Nordell3-Sep-02 23:42 
GeneralRe: How to identify motherboard? Pin
Anonymous4-Sep-02 0:35
Anonymous4-Sep-02 0:35 
GeneralDrawing in layers Pin
mirano3-Sep-02 22:53
mirano3-Sep-02 22:53 
GeneralRe: Drawing in layers Pin
Hostalet Wandosell3-Sep-02 23:44
Hostalet Wandosell3-Sep-02 23:44 
GeneralPocketPC and Windows CE development Pin
Daniel Strigl3-Sep-02 22:53
Daniel Strigl3-Sep-02 22:53 

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.