Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem Pin
john563229-Jul-10 21:32
john563229-Jul-10 21:32 
AnswerRe: Problem Pin
«_Superman_»29-Jul-10 21:55
professional«_Superman_»29-Jul-10 21:55 
GeneralRe: Problem Pin
Sauro Viti29-Jul-10 22:30
professionalSauro Viti29-Jul-10 22:30 
GeneralRe: Problem Pin
Emilio Garavaglia30-Jul-10 3:11
Emilio Garavaglia30-Jul-10 3:11 
GeneralRe: Problem Pin
Sauro Viti30-Jul-10 4:24
professionalSauro Viti30-Jul-10 4:24 
Questionfile.txt size problem Pin
dilara semerci29-Jul-10 21:27
dilara semerci29-Jul-10 21:27 
AnswerRe: file.txt size problem Pin
«_Superman_»29-Jul-10 21:59
professional«_Superman_»29-Jul-10 21:59 
AnswerRe: file.txt size problem Pin
Code-o-mat29-Jul-10 22:00
Code-o-mat29-Jul-10 22:00 
If you mean: how to know the size, you can either simply have a counter which you increase by the length of the text written to the file each time and then after of before writing the text check it if it exceeds your limit and then close the current file and create the new one. Or you can use ftell[^] or SetFilePointer[^] (or somesuch, depending on how you handle the file) to query the file pointer and if it is above a certain position, again, close the current file and open a new one.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <

AnswerRe: file.txt size problem Pin
Moak29-Jul-10 23:24
Moak29-Jul-10 23:24 
AnswerRe: file.txt size problem Pin
Shivanand Gupta30-Jul-10 0:17
Shivanand Gupta30-Jul-10 0:17 
Questionpre-post increament Pin
Pankaj D.Dubey29-Jul-10 20:49
Pankaj D.Dubey29-Jul-10 20:49 
AnswerRe: pre-post increament PinPopular
Aescleal29-Jul-10 21:14
Aescleal29-Jul-10 21:14 
AnswerRe: pre-post increament PinPopular
Sauro Viti29-Jul-10 21:18
professionalSauro Viti29-Jul-10 21:18 
AnswerRe: pre-post increament PinPopular
Peter_in_278029-Jul-10 21:21
professionalPeter_in_278029-Jul-10 21:21 
QuestionRezise an CListCtrl on CFormView Pin
mesajflaviu29-Jul-10 20:27
mesajflaviu29-Jul-10 20:27 
AnswerRe: Rezise an CListCtrl on CFormView Pin
mesajflaviu1-Aug-10 22:55
mesajflaviu1-Aug-10 22:55 
QuestionContext Menu and Modelless Dialogs problem Pin
Harsh Shankar29-Jul-10 19:40
Harsh Shankar29-Jul-10 19:40 
QuestionAdd control at runtime? Pin
smengl29-Jul-10 12:30
smengl29-Jul-10 12:30 
AnswerRe: Add control at runtime? Pin
Cool_Dev29-Jul-10 18:02
Cool_Dev29-Jul-10 18:02 
AnswerRe: Add control at runtime? Pin
«_Superman_»29-Jul-10 18:26
professional«_Superman_»29-Jul-10 18:26 
AnswerRe: Add control at runtime? Pin
ThatsAlok7-Jun-11 23:49
ThatsAlok7-Jun-11 23:49 
Questionconvert UCHAR array to UINT array Pin
fasked29-Jul-10 11:29
fasked29-Jul-10 11:29 
AnswerRe: convert UCHAR array to UINT array Pin
Peter_in_278029-Jul-10 13:33
professionalPeter_in_278029-Jul-10 13:33 
GeneralRe: convert UCHAR array to UINT array Pin
fasked29-Jul-10 13:39
fasked29-Jul-10 13:39 
AnswerRe: convert UCHAR array to UINT array Pin
Harsh Shankar29-Jul-10 19:51
Harsh Shankar29-Jul-10 19:51 

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.