Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: any lib to be added to make it work or any changes to be done? Pin
ShaluMalu23-Mar-07 3:37
ShaluMalu23-Mar-07 3:37 
QuestionRemove focus on a disabled tab item Pin
sireesha_sree23-Mar-07 1:39
sireesha_sree23-Mar-07 1:39 
AnswerRe: Remove focus on a disabled tab item Pin
Phil J Pearson23-Mar-07 7:48
Phil J Pearson23-Mar-07 7:48 
QuestionProblem about ListBox item Pin
Chen-XuNuo23-Mar-07 1:36
Chen-XuNuo23-Mar-07 1:36 
AnswerRe: Problem about ListBox item Pin
Mark Salsbery23-Mar-07 8:05
Mark Salsbery23-Mar-07 8:05 
AnswerRe: Problem about ListBox item Pin
DLChambers23-Mar-07 15:13
DLChambers23-Mar-07 15:13 
QuestionHow to find if a particular system is active or not in a LAN? Pin
Malini Nair23-Mar-07 1:28
Malini Nair23-Mar-07 1:28 
AnswerRe: How to find if a particular system is active or not in a LAN? Pin
Programm3r23-Mar-07 2:49
Programm3r23-Mar-07 2:49 
Malini Nair wrote:
Now i wanted to know how i can find the status of the system ie. if it is active or not.


(If I understand your question correctly ...)

What about the function:
FILE *_popen(const char *command,const char *mode)

You can uses this function to ping the other machine, and know the status.
#include <stdio.h>
#include <stdlib.h>

int main( void )
{

   char   psBuffer[128];
   FILE   *pPipe;

   if( (pPipe = _popen( "ping 192.168.0.1", "rt" )) == NULL )
      exit( 1 );

        /* Read pipe until end of file. */

   while( !feof( pPipe ) )
   {
      if( fgets( psBuffer, 128, pPipe ) != NULL )
         printf( psBuffer );
   }

        /* Close pipe and print return value of pPipe. */

   printf( "\nProcess returned %d\n", _pclose( pPipe ) );
}


Hope this helps ..
Regards,


The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

My Blog: ^_^

QuestionRe: How to find if a particular system is active or not in a LAN? Pin
Mark Salsbery23-Mar-07 8:09
Mark Salsbery23-Mar-07 8:09 
QuestionC++.Net 2005 With Crystal Reports Pin
Pubudu Wijeyaratne23-Mar-07 1:06
Pubudu Wijeyaratne23-Mar-07 1:06 
QuestionHow to include a library file? Pin
Malini Nair23-Mar-07 0:26
Malini Nair23-Mar-07 0:26 
AnswerRe: How to include a library file? Pin
toxcct23-Mar-07 0:29
toxcct23-Mar-07 0:29 
AnswerRe: How to include a library file? Pin
Nibu babu thomas23-Mar-07 1:17
Nibu babu thomas23-Mar-07 1:17 
GeneralRe: How to include a library file? Pin
_808623-Mar-07 1:51
_808623-Mar-07 1:51 
GeneralRe: How to include a library file? Pin
Nibu babu thomas23-Mar-07 2:15
Nibu babu thomas23-Mar-07 2:15 
GeneralRe: How to include a library file? Pin
_808623-Mar-07 4:56
_808623-Mar-07 4:56 
GeneralRe: How to include a library file? Pin
Nibu babu thomas25-Mar-07 17:13
Nibu babu thomas25-Mar-07 17:13 
QuestionScrolling Text problem Pin
vinhcyim23-Mar-07 0:13
vinhcyim23-Mar-07 0:13 
Answerposting guidelines Pin
toxcct23-Mar-07 0:16
toxcct23-Mar-07 0:16 
AnswerRe: Scrolling Text problem Pin
Mark Salsbery23-Mar-07 8:21
Mark Salsbery23-Mar-07 8:21 
QuestionSDI/ View Pin
_808623-Mar-07 0:10
_808623-Mar-07 0:10 
AnswerRe: SDI/ View Pin
RChin23-Mar-07 2:01
RChin23-Mar-07 2:01 
GeneralRe: SDI/ View Pin
_808623-Mar-07 0:52
_808623-Mar-07 0:52 
GeneralRe: SDI/ View Pin
_808623-Mar-07 2:11
_808623-Mar-07 2:11 
GeneralRe: SDI/ View Pin
cp987623-Mar-07 13:47
cp987623-Mar-07 13:47 

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.