Important alert: (current site time 7/15/2013 6:47:03 PM EDT)
 

winzip icon

Check if connected in Internet

Email
Submitted on: 2/14/2000
By: MarcosVelasco 
Level: Advanced
User Rating: By 9 Users
Compatibility: C, C++ (general), Microsoft Visual C++, Borland C++
Views: 32579
 
     Check if connected in Internet... Windows 9X, ME, NT, 2000 and XP compatible...
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
3/10/2000 7:29:29 AMKevin White

This is just what I've been looking for! Thanks
(If this comment was disrespectful, please report it.)

 
6/22/2001 9:06:55 AMProf. E.

I can't believe you posted code without including the header file in the .zip. What were you thinking man? How will anyone compile without it. I hate it when so many people do things like that.
(If this comment was disrespectful, please report it.)

 
11/21/2001 11:08:50 AMXiaoTencas

when i try compiling, it gives a lot of errors on the header...
(If this comment was disrespectful, please report it.)

 
11/30/2001 6:38:10 PMFakhri Essedik

Thank, this is just what I've been looking for. Small but great!
(If this comment was disrespectful, please report it.)

 
4/9/2002 5:00:26 PMThe Real Morpheous

Hi, when I compiling the file the result is a lot of errors on the header,
colud you send me the header. Im interested because the program is so pretty
(If this comment was disrespectful, please report it.)

 
7/18/2002 12:35:36 PMtony

you need to give more info, the code in fact is no so hard, but it makes the things really of a very advance level if we have to invent the header files in our own.
(If this comment was disrespectful, please report it.)

 
10/15/2002 2:41:44 PM

after some corrections, program was successfully compiled, but result is incorrect :(. I have connected to the Internet, but program says other one.

(If this comment was disrespectful, please report it.)

 
7/21/2003 2:29:08 AMRobbie Grove

i could of sworn ras is only for dialup not cable etc ;)
(If this comment was disrespectful, please report it.)

 
7/21/2003 2:30:06 AMRobbie Grove

also why are you getting errors ras.h is a default header in msvc++ 6
(If this comment was disrespectful, please report it.)

 
11/11/2004 11:05:55 AMROCKaMIC

ras.h gives lots of errors, starting with a parse error which might cause all the others...
(If this comment was disrespectful, please report it.)

 
12/26/2004 8:17:27 AM

my email id netmseshu@yahoo.co.in
can you explain the code i am do bca in indian
(If this comment was disrespectful, please report it.)

 
12/26/2004 8:19:36 AM

sir i am new to pscode if i send message author well explain not please tell me
(If this comment was disrespectful, please report it.)

 
12/28/2004 2:41:43 PM

Why do not simpy use InternetGetConnectedState function?

See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/interne tgetconnectedstate.asp

Easy
and smart, isn't it? :)
(If this comment was disrespectful, please report it.)

 
1/26/2005 3:50:26 AMM@rk

Who gets link errors, have to go in
(If this comment was disrespectful, please report it.)

 
6/26/2005 12:21:39 PM

I do for getting the result of internet connection. But I get a message like linker errors in .obj file and
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.