Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldeleting an item from listcontrol Pin
Anonymous25-May-04 23:15
Anonymous25-May-04 23:15 
GeneralRe: deleting an item from listcontrol Pin
Roger Allen26-May-04 2:26
Roger Allen26-May-04 2:26 
GeneralRe: deleting an item from listcontrol Pin
Anonymous26-May-04 20:29
Anonymous26-May-04 20:29 
GeneralRe: deleting an item from listcontrol Pin
David Crow27-May-04 2:26
David Crow27-May-04 2:26 
GeneralRe: deleting an item from listcontrol Pin
David Crow26-May-04 2:27
David Crow26-May-04 2:27 
GeneralPlatform SDK Problem Pin
Bernhard25-May-04 23:14
Bernhard25-May-04 23:14 
GeneralRe: Platform SDK Problem Pin
Antony M Kancidrowski26-May-04 3:55
Antony M Kancidrowski26-May-04 3:55 
GeneralUsing Pipes on Win 98 Pin
Member 33928725-May-04 22:29
Member 33928725-May-04 22:29 
If I try to use pipe to run coomands through command.com, the program does not return even after the command.com has finished writing to the pipe. The ReadFile() function simply waits there for input on windows 98. This code is running fine on windows 2000. Does Anybody have any solution?

The part of code where the execution stops responding is:

while(1) {
succ = ReadFile(hReadPipe, buffer, sizeof(buffer)-sizeof(char), &nread, NULL);

//****** it waits here after reading all the op from the pipe***********//

if(nread == 0)
break;
buffer[nread]=0;
fwrite(buffer, strlen(buffer), 1, fp);

}
if(nread) {
buffer[nread]=0;
fwrite(buffer, strlen(buffer), 1, fp);
}
fclose(fp);

DWORD err = ::GetLastError();

::CloseHandle(hReadPipe);



Can anyone help ???


GeneralRe: Using Pipes on Win 98 Pin
Ryan Roberts26-May-04 3:42
Ryan Roberts26-May-04 3:42 
GeneralGetting BoderStyle At Runtine Pin
IceBerG7125-May-04 22:28
IceBerG7125-May-04 22:28 
GeneralRe: Getting BoderStyle At Runtine Pin
Diddy26-May-04 0:05
Diddy26-May-04 0:05 
QuestionIs what possible??? Pin
El'Cachubrey25-May-04 22:17
El'Cachubrey25-May-04 22:17 
AnswerRe: Is what possible??? Pin
Ryan Binns25-May-04 23:48
Ryan Binns25-May-04 23:48 
Generaldebugger out of step with code Pin
bryce25-May-04 21:13
bryce25-May-04 21:13 
GeneralRe: debugger out of step with code Pin
Antony M Kancidrowski25-May-04 22:28
Antony M Kancidrowski25-May-04 22:28 
GeneralRe: debugger out of step with code Pin
MrContact26-May-04 2:39
MrContact26-May-04 2:39 
GeneralRe: debugger out of step with code Pin
bryce26-May-04 13:27
bryce26-May-04 13:27 
GeneralRe: debugger out of step with code Pin
bryce27-May-04 0:51
bryce27-May-04 0:51 
GeneralProblems in Enumerating network Pin
abdul moeed25-May-04 21:12
abdul moeed25-May-04 21:12 
GeneralRe: Problems in Enumerating network Pin
David Crow26-May-04 3:15
David Crow26-May-04 3:15 
GeneralRe: Problems in Enumerating network Pin
abdul moeed26-May-04 19:05
abdul moeed26-May-04 19:05 
GeneralRe: Problems in Enumerating network Pin
David Crow27-May-04 2:31
David Crow27-May-04 2:31 
GeneralRe: Problems in Enumerating network Pin
abdul moeed27-May-04 19:08
abdul moeed27-May-04 19:08 
General1 function multiple buttons Pin
V.25-May-04 21:01
professionalV.25-May-04 21:01 
GeneralRe: 1 function multiple buttons Pin
Johan Rosengren25-May-04 21:32
Johan Rosengren25-May-04 21:32 

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.