Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: abababab() - what to do? Pin
dennisV27-Nov-03 1:17
dennisV27-Nov-03 1:17 
GeneralRe: abababab() - what to do? Pin
фил27-Nov-03 3:07
фил27-Nov-03 3:07 
GeneralRe: abababab() - what to do? Pin
dennisV27-Nov-03 12:18
dennisV27-Nov-03 12:18 
AnswerRe: abababab() - what to do? Pin
Mike Dimmick27-Nov-03 2:29
Mike Dimmick27-Nov-03 2:29 
GeneralRe: abababab() - what to do? Pin
dennisV27-Nov-03 12:08
dennisV27-Nov-03 12:08 
QuestionHow to Restrict floating of Dockable window Pin
Kashish Kumar26-Nov-03 18:16
Kashish Kumar26-Nov-03 18:16 
Generalexec output Pin
marouane miftah el kheir26-Nov-03 17:33
marouane miftah el kheir26-Nov-03 17:33 
GeneralRe: exec output Pin
Johnny ²26-Nov-03 21:44
Johnny ²26-Nov-03 21:44 
Seeing as 'ls' only exists on Unix, then I will assume that is the platform you are programming for. To control the standard output/input you need to do change the target for them in the child process (you should be using fork if you are using execl). This can be achieved with the 'dup2' command:

int myfd = open ("somefile.txt", O_CREAT | O_WRONLY, 0777);<br />
<br />
dup2 (myfd, STDOUT_FILENO);


This re-maps the stdout output to your own file. You can then call 'execlp' to load ls, and the output will go to your file
GeneralMFC DialogBar problem Pin
Member 98943626-Nov-03 17:12
Member 98943626-Nov-03 17:12 
GeneralPassword Keeper Pin
kpatry26-Nov-03 16:49
kpatry26-Nov-03 16:49 
GeneralRe: Password Keeper Pin
Prakash Nadar26-Nov-03 21:30
Prakash Nadar26-Nov-03 21:30 
GeneralPageFile Size Pin
matrixprogrammer26-Nov-03 15:08
matrixprogrammer26-Nov-03 15:08 
GeneralRe: PageFile Size Pin
Joe Woodbury26-Nov-03 16:40
professionalJoe Woodbury26-Nov-03 16:40 
GeneralRe: PageFile Size Pin
matrixprogrammer26-Nov-03 16:55
matrixprogrammer26-Nov-03 16:55 
GeneralTreeview control for BOM Pin
mmcsherr26-Nov-03 15:02
mmcsherr26-Nov-03 15:02 
Generalabout C++ Pin
Chau Ngoc Vo26-Nov-03 14:35
Chau Ngoc Vo26-Nov-03 14:35 
GeneralRe: about C++ Pin
Christian Graus26-Nov-03 15:24
protectorChristian Graus26-Nov-03 15:24 
GeneralRe: about C++ Pin
Joe Woodbury26-Nov-03 16:39
professionalJoe Woodbury26-Nov-03 16:39 
GeneralRe: about C++ Pin
Phil Hamer26-Nov-03 18:35
Phil Hamer26-Nov-03 18:35 
GeneralRe: about C++ Pin
Prakash Nadar26-Nov-03 21:25
Prakash Nadar26-Nov-03 21:25 
GeneralCryptoApi CryptEncrypt returning a smaller size Pin
(Steven Hicks)n+126-Nov-03 14:32
(Steven Hicks)n+126-Nov-03 14:32 
GeneralRe: CryptoApi CryptEncrypt returning a smaller size Pin
Mike Dimmick27-Nov-03 2:49
Mike Dimmick27-Nov-03 2:49 
GeneralLPCWSTR function question Pin
Binayak26-Nov-03 12:26
Binayak26-Nov-03 12:26 
GeneralC++ question Pin
Cpudood26-Nov-03 12:08
Cpudood26-Nov-03 12:08 
GeneralRe: C++ question Pin
Joaquín M López Muñoz26-Nov-03 12:20
Joaquín M López Muñoz26-Nov-03 12:20 

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.