system() without window

Regan Heath regan at
Wed Jul 11 11:04:35 PDT 2007

okibi wrote:
> I tried your method for popen and i get "Symbol undefined" errors. I also tried this code:
> extern (C) {
> 	typedef void FILE;
> 	FILE* popen(char* cmd, char* type);
> 	int pclose(FILE* stream);
> }
> and get the same errors.
> Any ideas?

Ahh, it seems I was mistaken.  popen only works on UNIX.  Looks like you 
need to code up something with CreateFile.


More information about the Digitalmars-d-learn mailing list