www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/24/23:42:47

From: bas AT merlin DOT ebicom DOT net
Message-Id: <2.2.32.19970124223651.006ce7e4@merlin.ebicom.net>
Mime-Version: 1.0
Date: Fri, 24 Jan 1997 22:36:51 +0000
To: djgpp AT delorie DOT com
Subject: system with rsxntdj

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019