Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionstoring/retrieving a lot of files Pin
9ine21-May-06 8:52
9ine21-May-06 8:52 
QuestionRe: storing/retrieving a lot of files Pin
pgrohs21-May-06 10:38
pgrohs21-May-06 10:38 
AnswerRe: storing/retrieving a lot of files Pin
9ine22-May-06 0:10
9ine22-May-06 0:10 
GeneralRe: storing/retrieving a lot of files [modified] Pin
pgrohs22-May-06 0:16
pgrohs22-May-06 0:16 
AnswerRe: storing/retrieving a lot of files Pin
cmk21-May-06 11:59
cmk21-May-06 11:59 
AnswerRe: storing/retrieving a lot of files Pin
Stephen Hewitt21-May-06 15:18
Stephen Hewitt21-May-06 15:18 
GeneralRe: storing/retrieving a lot of files Pin
9ine22-May-06 0:13
9ine22-May-06 0:13 
QuestionAppending data to a file [modified] Pin
llp00na21-May-06 8:46
llp00na21-May-06 8:46 
Dear everyone;

i am trying to write some data to a file. now thats not a problem, what i also would like to do is to open a pre-existing file and append more data on it everytime my application is used.

thats what i have done, but for some reason it does not work ??

FILE* trial = fopen("Trial.txt","a+");

// a user event function which processes user clicks
BOOL CExample::PreTranslateMessage(MSG* pMsg){

if(WM_LBUTTONDOWN == pMsg->message){
fprintf(trial, "\nAppend Data");
fflush(trial);
}
}

The file however appears to be not changing at all Confused | :confused: !!!

any help will be very much appreciated

llp00na
AnswerRe: Appending data to a file [modified] Pin
PJ Arends21-May-06 9:45
professionalPJ Arends21-May-06 9:45 
GeneralRe: Appending data to a file [modified] Pin
llp00na21-May-06 11:17
llp00na21-May-06 11:17 
GeneralRe: Appending data to a file [modified] Pin
PJ Arends21-May-06 19:46
professionalPJ Arends21-May-06 19:46 
QuestionHow to Play any Audio File & Set System Volume? Pin
Andy Rama21-May-06 8:01
Andy Rama21-May-06 8:01 
AnswerRe: How to Play any Audio File & Set System Volume? Pin
PJ Arends21-May-06 9:02
professionalPJ Arends21-May-06 9:02 
AnswerRe: How to Play any Audio File & Set System Volume? Pin
Hamid_RT21-May-06 18:52
Hamid_RT21-May-06 18:52 
GeneralRe: How to Play any Audio File & Set System Volume? Pin
Andy Rama21-May-06 20:09
Andy Rama21-May-06 20:09 
GeneralRe: How to Play any Audio File & Set System Volume? Pin
Hamid_RT21-May-06 20:45
Hamid_RT21-May-06 20:45 
GeneralRe: How to Play any Audio File & Set System Volume? [modified] Pin
Andy Rama21-May-06 23:03
Andy Rama21-May-06 23:03 
GeneralRe: How to Play any Audio File & Set System Volume? [modified] Pin
Hamid_RT22-May-06 4:13
Hamid_RT22-May-06 4:13 
Questionsome queries i not sure of. (urgent) Pin
chubbie21-May-06 6:43
chubbie21-May-06 6:43 
AnswerRe: some queries i not sure of. (urgent) Pin
PJ Arends21-May-06 7:47
professionalPJ Arends21-May-06 7:47 
QuestionHow can I Create my image? Pin
akram mirzaei21-May-06 5:56
akram mirzaei21-May-06 5:56 
QuestionRe: How can I Create my image? Pin
Hamid_RT21-May-06 6:15
Hamid_RT21-May-06 6:15 
AnswerRe: How can I Create my image? Pin
akram mirzaei21-May-06 8:30
akram mirzaei21-May-06 8:30 
GeneralRe: How can I Create my image? Pin
Hamid_RT21-May-06 18:32
Hamid_RT21-May-06 18:32 
QuestionD3D I want to draw a red line Pin
akira3221-May-06 5:42
akira3221-May-06 5:42 

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.