Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionList ctrl rows displaying same value...... Pin
neha.agarwal2729-Mar-07 0:23
neha.agarwal2729-Mar-07 0:23 
GeneralRe: List ctrl rows displaying same value...... Pin
prasad_som29-Mar-07 0:26
prasad_som29-Mar-07 0:26 
GeneralRe: List ctrl rows displaying same value...... Pin
neha.agarwal2729-Mar-07 0:31
neha.agarwal2729-Mar-07 0:31 
GeneralRe: List ctrl rows displaying same value...... Pin
Naveen29-Mar-07 0:38
Naveen29-Mar-07 0:38 
AnswerRe: List ctrl rows displaying same value...... Pin
prasad_som29-Mar-07 0:40
prasad_som29-Mar-07 0:40 
GeneralRe: List ctrl rows displaying same value...... Pin
David Crow29-Mar-07 3:28
David Crow29-Mar-07 3:28 
QuestionExtracting multiple cab files Pin
Ms. Agrawal29-Mar-07 0:23
Ms. Agrawal29-Mar-07 0:23 
QuestionWriteFile Issue Pin
Programm3r29-Mar-07 0:14
Programm3r29-Mar-07 0:14 
Hi all,

I'm trying to append data to the end of a file. The problem is that when I call the WriteFile function (it return 1), but none of the data gets appended. The buffer isn't empty. What could be the problem ???
I have used GetLastError, and the function returns 0 ... so Confused | :confused:
This is what I have done so far:
#define BUFF_SIZE 4000
char buffer[BUFF_SIZE];
/*
I did a CreateFile and ReadFile, to get data into the buffer
*/
Handle hFile = CreateFile(attTMPFName,
      GENERIC_WRITE,
      0,
      NULL,
      OPEN_EXISTING,
      FILE_ATTRIBUTE_NORMAL,
      NULL);

if (WriteFile(hFile ,buffer,BUFF_SIZE,&dwBytesWritten,NULL))
{
 ...


Many thanx in advance.
Regards,


The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

My Blog: ^_^

AnswerRe: WriteFile Issue Pin
Naveen29-Mar-07 0:21
Naveen29-Mar-07 0:21 
GeneralRe: WriteFile Issue Pin
Programm3r29-Mar-07 0:28
Programm3r29-Mar-07 0:28 
AnswerRe: WriteFile Issue Pin
CPallini29-Mar-07 0:23
mveCPallini29-Mar-07 0:23 
GeneralRe: WriteFile Issue Pin
Programm3r29-Mar-07 0:29
Programm3r29-Mar-07 0:29 
QuestionRe: WriteFile Issue Pin
prasad_som29-Mar-07 0:30
prasad_som29-Mar-07 0:30 
QuestionRe: WriteFile Issue Pin
Programm3r29-Mar-07 0:38
Programm3r29-Mar-07 0:38 
AnswerRe: WriteFile Issue Pin
prasad_som29-Mar-07 0:46
prasad_som29-Mar-07 0:46 
GeneralRe: WriteFile Issue Pin
Programm3r29-Mar-07 0:50
Programm3r29-Mar-07 0:50 
GeneralRe: WriteFile Issue Pin
David Crow29-Mar-07 3:32
David Crow29-Mar-07 3:32 
GeneralRe: WriteFile Issue Pin
David Crow29-Mar-07 3:46
David Crow29-Mar-07 3:46 
GeneralRe: [OT] Pin
David Crow29-Mar-07 4:00
David Crow29-Mar-07 4:00 
GeneralRe: [OT] Pin
prasad_som29-Mar-07 4:05
prasad_som29-Mar-07 4:05 
AnswerRe: WriteFile Issue Pin
prasad_som29-Mar-07 3:45
prasad_som29-Mar-07 3:45 
GeneralRe: WriteFile Issue Pin
David Crow29-Mar-07 3:47
David Crow29-Mar-07 3:47 
GeneralRe: WriteFile Issue Pin
prasad_som29-Mar-07 3:51
prasad_som29-Mar-07 3:51 
QuestionEnsure Correct Size Pin
Programm3r29-Mar-07 1:57
Programm3r29-Mar-07 1:57 
AnswerRe: Ensure Correct Size Pin
prasad_som29-Mar-07 2:26
prasad_som29-Mar-07 2:26 

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.