Click here to Skip to main content
15,742,047 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hyperlink for send mail with use of static control? Pin
Le@rner23-Mar-09 1:48
Le@rner23-Mar-09 1:48 
QuestionHow to clean contents of a file Pin
PankajB22-Mar-09 23:33
PankajB22-Mar-09 23:33 
AnswerRe: How to clean contents of a file Pin
_AnsHUMAN_ 22-Mar-09 23:37
_AnsHUMAN_ 22-Mar-09 23:37 
GeneralRe: How to clean contents of a file Pin
PankajB22-Mar-09 23:40
PankajB22-Mar-09 23:40 
GeneralRe: How to clean contents of a file Pin
Cedric Moonen22-Mar-09 23:44
Cedric Moonen22-Mar-09 23:44 
GeneralRe: How to clean contents of a file Pin
«_Superman_»22-Mar-09 23:44
professional«_Superman_»22-Mar-09 23:44 
GeneralRe: How to clean contents of a file Pin
PankajB22-Mar-09 23:49
PankajB22-Mar-09 23:49 
GeneralRe: How to clean contents of a file Pin
«_Superman_»23-Mar-09 0:02
professional«_Superman_»23-Mar-09 0:02 
I'm not very sure of the performance issues here.
For overwriting the file you will need to first bring the pointer back to the begining.
You can use rewind() for that.

After writing the new data, if the newer data is of a smaller size than the earlier, you will need to make the file smaller.
You can use _chsize() for that.

You could probably try to either use fopen/fclose inside the loop or rewind/_chsize inside the loop, loop for 1000 or more times and compare the performance.

«_Superman
I love work. It gives me something to do between weekends.

AnswerRe: How to clean contents of a file Pin
Eytukan23-Mar-09 0:34
Eytukan23-Mar-09 0:34 
QuestionRe: How to clean contents of a file Pin
David Crow23-Mar-09 3:29
David Crow23-Mar-09 3:29 
QuestionCan we create a Toolbar without MenuBar? Pin
Abhijit D. Babar22-Mar-09 22:46
Abhijit D. Babar22-Mar-09 22:46 
AnswerRe: Can we create a Toolbar without MenuBar? Pin
Iain Clarke, Warrior Programmer22-Mar-09 23:32
Iain Clarke, Warrior Programmer22-Mar-09 23:32 
GeneralRe: Can we create a Toolbar without MenuBar? Pin
Abhijit D. Babar23-Mar-09 0:19
Abhijit D. Babar23-Mar-09 0:19 
GeneralRe: Can we create a Toolbar without MenuBar? Pin
Iain Clarke, Warrior Programmer23-Mar-09 0:28
Iain Clarke, Warrior Programmer23-Mar-09 0:28 
Questionfloating point exceptions instead of INF, NaN Pin
sor73naf22-Mar-09 22:42
sor73naf22-Mar-09 22:42 
AnswerRe: floating point exceptions instead of INF, NaN Pin
Dominik Reichl22-Mar-09 23:59
Dominik Reichl22-Mar-09 23:59 
GeneralRe: floating point exceptions instead of INF, NaN Pin
sor73naf23-Mar-09 3:03
sor73naf23-Mar-09 3:03 
QuestionWinInet - INTERNET_CACHE_ENTRY_INFO - Header Info [modified] Pin
CString(0xcccccccc)22-Mar-09 22:33
CString(0xcccccccc)22-Mar-09 22:33 
QuestionWhat is the SEH in release build VS2008 with fclose()? Pin
Chesnokov Yuriy22-Mar-09 22:32
professionalChesnokov Yuriy22-Mar-09 22:32 
AnswerRe: What is the SEH in release build VS2008 with fclose()? Pin
Eytukan23-Mar-09 0:26
Eytukan23-Mar-09 0:26 
QuestionRe: What is the SEH in release build VS2008 with fclose()? Pin
Chesnokov Yuriy23-Mar-09 2:10
professionalChesnokov Yuriy23-Mar-09 2:10 
AnswerRe: What is the SEH in release build VS2008 with fclose()? Pin
Eytukan23-Mar-09 2:47
Eytukan23-Mar-09 2:47 
QuestionDMA access from user-mode Pin
Maxwell Chen22-Mar-09 21:58
Maxwell Chen22-Mar-09 21:58 
AnswerRe: DMA access from user-mode Pin
Iain Clarke, Warrior Programmer22-Mar-09 23:35
Iain Clarke, Warrior Programmer22-Mar-09 23:35 
GeneralRe: DMA access from user-mode Pin
Maxwell Chen23-Mar-09 3:58
Maxwell Chen23-Mar-09 3:58 

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.