Closed Thread
Results 1 to 5 of 5

Thread: Internet connection message in mfc

  1. #1
    cpplover is offline Newbie
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    Internet connection message in mfc

    I have a dialog based program in mfc .i want when I connect or dicconnect from internet a message send to my program . . .
    Who I can do this ?

    Can someone help me aboat this question ?

    thanks

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: Internet connection message in mfc

    You do realize that being connect to the internet involves more than just HTTP Web connection. The internet is not limited to the Web, HTTP is simply a protocol that allows you to view the internet in a web page format. If you don't understand this you might want to read up on how the internet started, in which case you should google Arpanet. You can be connected to the internet on up to 65555 different ports all running different services some of which you are probably unaware of because their is more than likely spyware on your computer. Hence, saying that you want to be notified when you disconnect from the internet is a very vague thing to be notified about. Now, if you want to know when you are no longer connected to view web pages, you need to check the status of port 80 and port 443. Otherwise you will need to be more specific.

  4. #3
    cpplover is offline Newbie
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    Re: Internet connection message in mfc

    Ok thanks

    In fact I want to write a program that calculate the internet connection time and save this times in a text file .
    Therefore I must be aware from connecting and disconnecting from internet.
    I use dial-up connection for internet .
    Recently I searched msdn and I find some suitable functions that can help me :
    InternetGetConnectedState is a function in SDK platform but it is not a message .by it I can realize I'm connect or disconnect but i need a message .
    You said about using ports .now can you write code or functions that do this for me ?

    Excuse me if my sentences have some problem because my language is not english .

  5. #4
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: Internet connection message in mfc

    Okay..... You want me to write this for you? You can write it, it's your project. I was just telling you that you can get the status of different ports if certain services are connected to there internet.

  6. #5
    cpplover is offline Newbie
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    Re: Internet connection message in mfc

    You want me to write this for you?
    No ! I want you to give me an example or a link

    You can write it, it's your project
    It is not a project I work visual c++ because its interesting for me

    I was just telling you that you can get the status of different ports if certain services are connected to there internet.
    If its possible for you and you have enough time please help me !

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. no internet connection
    By legacy in forum Linux Installation & Configuration
    Replies: 2
    Last Post: 04-30-2011, 12:12 AM
  2. Replies: 1
    Last Post: 02-10-2011, 02:09 AM
  3. Internet connection
    By shruti in forum Pascal and Delphi
    Replies: 4
    Last Post: 06-24-2010, 07:29 PM
  4. Securing a connection to the internet
    By ThemePark in forum Java Help
    Replies: 0
    Last Post: 05-25-2010, 03:52 PM
  5. Your Internet Connection
    By Nightracer in forum Technology Ramble
    Replies: 13
    Last Post: 11-18-2006, 09:17 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts