Mail Archives: djgpp/1997/01/24/23:42:47
Ok, another question *g* I'm writing sort of a front end for netstat.exe for
a mirc script i'm writing and it works fine when compiled with plain old gcc
but when I compile it using rsxntdj none of my system() stuff works, heres
the source code in case you can see whats wrong, thanks!
#include <stdio.h>
#include <rsxioapp.h>
char rsxio_window_title[] = "SilverHaze IP Scanner";
int rsxio_window_close = 1;
int rsxio_main(int argc, char **argv, char **env)
{
printf("\033[1;36m");
printf("
SilverHaze IP Scanner For Win32
");
printf("\n\nNow scanning for connected ip's...");
system( "echo SilverHaze IP scan results > ip.dat");
system( "netstat >> ip.dat");
printf("\nIP Scan complete, now printing results\n");
system("notepad ip.dat");
printf("\033[0m");
getchar();
return 0;
}
- Raw text -