Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateProcessWithLogonW() Pin
hph20-Apr-02 4:12
hph20-Apr-02 4:12 
GeneralRe: CreateProcessWithLogonW() Pin
Philip Patrick20-Apr-02 4:24
professionalPhilip Patrick20-Apr-02 4:24 
GeneralRe: CreateProcessWithLogonW() Pin
hph20-Apr-02 5:07
hph20-Apr-02 5:07 
GeneralRe: CreateProcessWithLogonW() Pin
Philip Patrick20-Apr-02 7:45
professionalPhilip Patrick20-Apr-02 7:45 
GeneralRe: CreateProcessWithLogonW() Pin
Tim Deveaux20-Apr-02 4:57
Tim Deveaux20-Apr-02 4:57 
GeneralRe: CreateProcessWithLogonW() Pin
Tim Deveaux20-Apr-02 5:14
Tim Deveaux20-Apr-02 5:14 
QuestionSend data to text file after read from pipe? Pin
19-Apr-02 23:55
suss19-Apr-02 23:55 
AnswerRe: Send data to text file after read from pipe? Pin
Paul M Watt20-Apr-02 5:49
mentorPaul M Watt20-Apr-02 5:49 
For clarity and possibly function, I would switch and use only one form of all of the functions. I would switch to either CreateFile, ReadFile, WriteFile and CloseHandle or fopen, fread, fwrite, fclose to do your pipe and file handling.

I am not sure that you can use ReadFile to to read data when you open a file with fopen. I believe that you need to use fread and fwrite. To test this you should check the bytes read value from the ReadFile function and insure that it is the size that you expect it to be. I suspect that it will be zero.

There is one other possibility that there is a NULL at the very beginning of your buffer data, and fprintf does not want to display it that way, I don't know.




Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralSplitter without Doc/View Pin
Dr_Sh0ck19-Apr-02 23:27
Dr_Sh0ck19-Apr-02 23:27 
GeneralRe: Splitter without Doc/View Pin
Dr_Sh0ck21-Apr-02 6:13
Dr_Sh0ck21-Apr-02 6:13 
Generalneed help drawing to a meta DC Pin
IGeorgeI19-Apr-02 22:52
IGeorgeI19-Apr-02 22:52 
GeneralRe: need help drawing to a meta DC Pin
Shog920-Apr-02 4:03
sitebuilderShog920-Apr-02 4:03 
GeneralRe: need help drawing to a meta DC Pin
IGeorgeI20-Apr-02 6:43
IGeorgeI20-Apr-02 6:43 
GeneralRe: need help drawing to a meta DC Pin
Paul M Watt20-Apr-02 8:26
mentorPaul M Watt20-Apr-02 8:26 
GeneralSplitter between two controls Pin
Dean Michaud19-Apr-02 17:34
Dean Michaud19-Apr-02 17:34 
GeneralRe: Splitter between two controls Pin
User 842019-Apr-02 17:38
User 842019-Apr-02 17:38 
GeneralRe: Splitter between two controls Pin
Shog919-Apr-02 17:42
sitebuilderShog919-Apr-02 17:42 
GeneralRe: Splitter between two controls Pin
Dean Michaud19-Apr-02 17:45
Dean Michaud19-Apr-02 17:45 
GeneralRe: Splitter between two controls Pin
Shog919-Apr-02 17:58
sitebuilderShog919-Apr-02 17:58 
QuestionHow can I control my program by the shell? Pin
19-Apr-02 16:32
suss19-Apr-02 16:32 
AnswerRe: How can I control my program by the shell? Pin
Paul M Watt20-Apr-02 8:33
mentorPaul M Watt20-Apr-02 8:33 
Generalhexadecimal to binary Pin
Mohe19-Apr-02 15:13
Mohe19-Apr-02 15:13 
GeneralRe: hexadecimal to binary Pin
Christian Graus19-Apr-02 16:20
protectorChristian Graus19-Apr-02 16:20 
GeneralMinimum requirements for .NET Pin
Chris Hafey19-Apr-02 15:00
Chris Hafey19-Apr-02 15:00 
GeneralRe: Minimum requirements for .NET Pin
Chris Hafey19-Apr-02 17:20
Chris Hafey19-Apr-02 17: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.