Click here to Skip to main content
15,888,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CListBox not being drawn topmost Pin
maycockt10-Feb-10 3:58
maycockt10-Feb-10 3:58 
QuestionRe: CListBox not being drawn topmost Pin
David Crow10-Feb-10 4:00
David Crow10-Feb-10 4:00 
AnswerRe: CListBox not being drawn topmost Pin
maycockt10-Feb-10 4:07
maycockt10-Feb-10 4:07 
QuestionRe: CListBox not being drawn topmost Pin
David Crow10-Feb-10 4:12
David Crow10-Feb-10 4:12 
AnswerRe: CListBox not being drawn topmost Pin
maycockt10-Feb-10 4:20
maycockt10-Feb-10 4:20 
GeneralRe: CListBox not being drawn topmost Pin
loyal ginger10-Feb-10 4:49
loyal ginger10-Feb-10 4:49 
GeneralRe: CListBox not being drawn topmost Pin
maycockt11-Feb-10 4:31
maycockt11-Feb-10 4:31 
QuestionProblem in File seek() Pin
Member 439977110-Feb-10 1:08
Member 439977110-Feb-10 1:08 
Hi All,

I am reading some big files having thousands of lines, my requirement is to write some thing on the last but one line(i know the length of last line). how to seek my file pointer to last but one line with out seeking all the position from the beginning of the file?

i tried with some code, but not achieving the right goal. please check the code

long seekval = assfile.SeekToEnd();
assfile.Seek((seekval - 4.0),0);
assfile.WriteString(_T("some text"));


assfile is the CStdioFile obj.
4 is the length of the last line.

Thanks in advance.

Regards,
Kumar
AnswerRe: Problem in File seek() Pin
Richard MacCutchan10-Feb-10 1:46
mveRichard MacCutchan10-Feb-10 1:46 
AnswerRe: Problem in File seek() Pin
Mircea Puiu10-Feb-10 1:48
Mircea Puiu10-Feb-10 1:48 
GeneralRe: Problem in File seek() Pin
normanS11-Feb-10 22:45
normanS11-Feb-10 22:45 
AnswerRe: Problem in File seek() Pin
loyal ginger10-Feb-10 1:49
loyal ginger10-Feb-10 1:49 
AnswerRe: Problem in File seek() Pin
Member 467820123-Feb-10 4:24
Member 467820123-Feb-10 4:24 
Questionantispyware Pin
NetDefender 20099-Feb-10 23:47
NetDefender 20099-Feb-10 23:47 
AnswerRe: antispyware Pin
Richard MacCutchan10-Feb-10 0:20
mveRichard MacCutchan10-Feb-10 0:20 
GeneralRe: antispyware Pin
glitteringsound10-Feb-10 0:26
glitteringsound10-Feb-10 0:26 
JokeRe: antispyware Pin
CPallini10-Feb-10 0:40
mveCPallini10-Feb-10 0:40 
GeneralRe: antispyware Pin
Richard MacCutchan10-Feb-10 0:42
mveRichard MacCutchan10-Feb-10 0:42 
AnswerRe: antispyware Pin
CPallini10-Feb-10 0:43
mveCPallini10-Feb-10 0:43 
AnswerRe: antispyware Pin
Bram van Kampen10-Feb-10 16:04
Bram van Kampen10-Feb-10 16:04 
QuestionHow can find out OS version of Client machine in Network? Pin
Le@rner9-Feb-10 21:13
Le@rner9-Feb-10 21:13 
AnswerRe: How can find out OS version of Client machine in Network? Pin
enhzflep9-Feb-10 23:23
enhzflep9-Feb-10 23:23 
AnswerRe: How can find out OS version of Client machine in Network? Pin
Hristo-Bojilov10-Feb-10 0:17
Hristo-Bojilov10-Feb-10 0:17 
GeneralRe: How can find out OS version of Client machine in Network? Pin
Le@rner10-Feb-10 1:20
Le@rner10-Feb-10 1:20 
GeneralRe: How can find out OS version of Client machine in Network? Pin
Hristo-Bojilov10-Feb-10 2:49
Hristo-Bojilov10-Feb-10 2:49 

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.