Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How I can add elements in multiple columns in a OWNER Drawn List box? Pin
Sameer_Thakur13-Mar-07 3:51
Sameer_Thakur13-Mar-07 3:51 
GeneralRe: How I can add elements in multiple columns in a OWNER Drawn List box? Pin
Hamid_RT13-Mar-07 3:57
Hamid_RT13-Mar-07 3:57 
QuestionRe: How I can add elements in multiple columns in a OWNER Drawn List box? Pin
Hamid_RT13-Mar-07 18:22
Hamid_RT13-Mar-07 18:22 
GeneralRe: How I can add elements in multiple columns in a OWNER Drawn List box? Pin
Sameer_Thakur14-Mar-07 2:06
Sameer_Thakur14-Mar-07 2:06 
GeneralRe: How I can add elements in multiple columns in a OWNER Drawn List box? Pin
Hamid_RT14-Mar-07 3:18
Hamid_RT14-Mar-07 3:18 
QuestionI don't have the CTime for this! Pin
rw10413-Mar-07 1:33
rw10413-Mar-07 1:33 
AnswerRe: I don't have the CTime for this! Pin
rw10413-Mar-07 1:42
rw10413-Mar-07 1:42 
QuestionAppending data to a file Pin
Programm3r13-Mar-07 1:27
Programm3r13-Mar-07 1:27 
Hi all,

I'm trying to append data to a file. I have tried the following without success:
HANDLE hFile;
char buffer[BUFSIZE];
DWORD dwBytesWritten;
DWORD nNumberOfBytesToWrite;
BOOL fSuccess;

hFile = CreateFile(TEX("C:\\testing.txt"),
		GENERIC_WRITE,
		0,
		NULL,
		OPEN_ALWAYS,
		FILE_ATTRIBUTE_NORMAL,
		NULL);

sprintf(buffer,"%s",tcpClass.transRequest);//transRequest contains the data (characters)

fSuccess = WriteFile(hFile,
	buffer,
	strlen(buffer)+1,
	&dwBytesWritten,
	NULL);

The problem is that the data doesn't append to the end of the file.
for example:
example1
example2
example3
...

Can anyone please help me.
Many Thanx
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: Appending data to a file Pin
James R. Twine13-Mar-07 1:42
James R. Twine13-Mar-07 1:42 
GeneralRe: Appending data to a file Pin
Programm3r13-Mar-07 1:49
Programm3r13-Mar-07 1:49 
GeneralRe: Appending data to a file Pin
James R. Twine13-Mar-07 1:58
James R. Twine13-Mar-07 1:58 
GeneralRe: Appending data to a file Pin
Programm3r13-Mar-07 2:08
Programm3r13-Mar-07 2:08 
AnswerRe: Appending data to a file Pin
Programm3r13-Mar-07 1:46
Programm3r13-Mar-07 1:46 
AnswerRe: Appending data to a file Pin
Stephen Hewitt13-Mar-07 2:14
Stephen Hewitt13-Mar-07 2:14 
GeneralRe: Appending data to a file Pin
Programm3r13-Mar-07 2:17
Programm3r13-Mar-07 2:17 
Questionproblem with setting pch file Pin
amitmistry_petlad 13-Mar-07 1:17
amitmistry_petlad 13-Mar-07 1:17 
AnswerRe: problem with setting pch file Pin
Paresh Chitte13-Mar-07 1:21
Paresh Chitte13-Mar-07 1:21 
AnswerRe: problem with setting pch file Pin
James R. Twine13-Mar-07 1:39
James R. Twine13-Mar-07 1:39 
QuestionGPU & CUDA Pin
A_Fa13-Mar-07 0:52
A_Fa13-Mar-07 0:52 
AnswerRe: GPU & CUDA Pin
Chris Losinger13-Mar-07 4:15
professionalChris Losinger13-Mar-07 4:15 
Questioncurrent system time in ms Pin
sulabh_expert@rediffmail.com13-Mar-07 0:33
sulabh_expert@rediffmail.com13-Mar-07 0:33 
AnswerRe: current system time in ms Pin
toxcct13-Mar-07 0:37
toxcct13-Mar-07 0:37 
AnswerRe: current system time in ms Pin
Paresh Chitte13-Mar-07 0:41
Paresh Chitte13-Mar-07 0:41 
AnswerRe: current system time in ms Pin
James R. Twine13-Mar-07 0:54
James R. Twine13-Mar-07 0:54 
GeneralRe: current system time in ms Pin
sulabh_expert@rediffmail.com13-Mar-07 1:05
sulabh_expert@rediffmail.com13-Mar-07 1:05 

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.