system() without window
Regan Heath
regan at netmail.co.nz
Wed Jul 11 11:08:09 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, I was mistaken; popen only works on UNIX. You need to code up
something with CreateProcess. I recall someone else posted a popen
implementation for windows once..
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=14470
Maybe that will help.
Regan
More information about the Digitalmars-d-learn
mailing list