Click here to Skip to main content
15,887,485 members
Articles / Desktop Programming / MFC
Article

Ping for Windows

Rate me:
Please Sign up or sign in to vote.
4.33/5 (38 votes)
15 Feb 2001 431K   21.9K   72   84
A simple Windows based ping program
  • Download source files - 133 Kb
  • Download executable - 108 Kb
  • Sample Image - WinPing.jpg

    Introduction

    This is an extremely simple Ping program for Windows. I'm using Chris Maunder's auto-completion combo box class and there's code borrowed from a Winsock 2.0 book. Credits are mentioned on the About box.

    Please see the code for details - it's quite simple.

    History

    7 Sep 2000:

    • Fixes to MRU Combo
    • Fixes to Duplicate host/ip addresses
    • Fixes to Ping times (Now correct)

    16 Sep 2001:

    • Updated source code

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    Written By
    Software Developer (Senior) Software Kinetics
    United Kingdom United Kingdom




    Software Kinetics
    are experts in developing customised and bespoke applications and have expertise in the development of desktop, mobile and internet applications on Windows.


    We specialise in:

    • User Interface Design
    • Desktop Development
    • Windows Phone Development
    • Windows Presentation Framework
    • Windows Forms
    • Windows Communication Framework
    • Windows Services
    • Network Applications
    • Database Applications
    • Web Development
    • Web Services
    • Silverlight
    • ASP.net


    Visit Software Kinetics

    Comments and Discussions

     
    GeneralCalling OnTimer(); after calling socket( Pin
    marreoragarn10-May-07 5:33
    marreoragarn10-May-07 5:33 
    Generalwhen my firewall is open this ping program cannot ping to the web server Pin
    sude6-Dec-06 16:10
    sude6-Dec-06 16:10 
    GeneralRequest Pin
    rahul_s99915-Jun-06 14:30
    rahul_s99915-Jun-06 14:30 
    GeneralRange maintaining Pin
    0pal13-Apr-06 21:10
    0pal13-Apr-06 21:10 
    GeneralRe: Range maintaining Pin
    webmastersitesi5-Jan-09 18:15
    webmastersitesi5-Jan-09 18:15 
    GeneralWSAError: 10022 Pin
    kkooccuurr30-May-05 10:51
    kkooccuurr30-May-05 10:51 
    Generalsource files Pin
    surfman1910-Feb-04 1:49
    surfman1910-Feb-04 1:49 
    QuestionHow can I stop the ping-request Pin
    dressman198113-Dec-03 5:39
    dressman198113-Dec-03 5:39 
    Hello,

    I have a short question.
    I open this ping-dialog as a non-modal dialog and the ping request is send (for example 10 retries). I can close the dialog, but I can't do anything in the parent dialog, because the ping is also running in background. After a few seconds, when the ping is over all is ok.
    How can I stop the ping-thread when the non-modal dialog should be close??? D'Oh! | :doh:

    Thanxx
    Jessica
    QuestionHow to send and receive a broadcast ping Pin
    Member 60945114-Oct-03 17:33
    Member 60945114-Oct-03 17:33 
    Generalping under XP Pin
    yyyKaktus29-Sep-03 19:22
    yyyKaktus29-Sep-03 19:22 
    GeneralRe: ping under XP Pin
    mohammad hajibegloo14-May-04 23:38
    mohammad hajibegloo14-May-04 23:38 
    GeneralRe: ping under XP Pin
    same.wong21-Aug-12 15:13
    same.wong21-Aug-12 15:13 
    GeneralBug Pin
    Yossi Meir15-Mar-03 21:47
    Yossi Meir15-Mar-03 21:47 
    GeneralRe: Bug Pin
    Hanney Wang16-Mar-03 19:08
    Hanney Wang16-Mar-03 19:08 
    GeneralNot work very well - A bug. Pin
    Hanney Wang24-Dec-02 16:36
    Hanney Wang24-Dec-02 16:36 
    GeneralRe: Not work very well - A bug. Pin
    Jesus Oliva1-Feb-03 9:47
    Jesus Oliva1-Feb-03 9:47 
    GeneralRe: Not work very well - A bug. Pin
    NormDroid1-Feb-03 22:14
    professionalNormDroid1-Feb-03 22:14 
    GeneralRe: Not work very well - A bug. Pin
    Hanney Wang15-Mar-03 2:25
    Hanney Wang15-Mar-03 2:25 
    GeneralRe: Not work very well - A bug - for Sonu Kapoor . Pin
    Hanney Wang30-Mar-03 15:36
    Hanney Wang30-Mar-03 15:36 
    GeneralRe: Not work very well - A bug - for Sonu Kapoor . Pin
    Sonu Kapoor1-Apr-03 0:39
    Sonu Kapoor1-Apr-03 0:39 
    GeneralRe: Not work very well - A bug - for Sonu Kapoor . Pin
    Yin Gang21-Sep-05 21:32
    Yin Gang21-Sep-05 21:32 
    QuestionCould you give me a TIP? Pin
    one_eddie22-Nov-02 12:45
    one_eddie22-Nov-02 12:45 
    Generalurgent !!!!! Pin
    balajiParthasarathy19-Aug-02 3:46
    sussbalajiParthasarathy19-Aug-02 3:46 
    GeneralRe: urgent !!!!! Pin
    Daniel 'Tak' M.19-Oct-02 6:43
    Daniel 'Tak' M.19-Oct-02 6:43 
    GeneralFinding local IP Pin
    Camran3-Jul-02 18:05
    Camran3-Jul-02 18:05 

    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.