Click here to Skip to main content
15,896,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Invalidate rectangle Pin
Calin Negru2-Dec-23 5:02
Calin Negru2-Dec-23 5:02 
GeneralRe: Invalidate rectangle Pin
Richard MacCutchan2-Dec-23 6:47
mveRichard MacCutchan2-Dec-23 6:47 
AnswerRe: Invalidate rectangle Pin
charlieg7-Dec-23 1:24
charlieg7-Dec-23 1:24 
Questionanother "include" question... Pin
Salvatore Terress8-Dec-23 5:58
Salvatore Terress8-Dec-23 5:58 
AnswerRe: another "include" question... Pin
MarkTJohnson28-Nov-23 4:32
professionalMarkTJohnson28-Nov-23 4:32 
AnswerRe: another "include" question... Pin
jschell28-Nov-23 4:58
jschell28-Nov-23 4:58 
AnswerRe: another "include" question... Pin
Richard MacCutchan28-Nov-23 5:16
mveRichard MacCutchan28-Nov-23 5:16 
GeneralRe: another "include" question... Pin
k505428-Nov-23 6:11
mvek505428-Nov-23 6:11 
AnswerRe: another "include" question... Pin
Salvatore Terress28-Nov-23 7:38
Salvatore Terress28-Nov-23 7:38 
GeneralRe: another "include" question... Pin
Richard MacCutchan28-Nov-23 21:57
mveRichard MacCutchan28-Nov-23 21:57 
GeneralRe: another "include" question... Pin
Salvatore Terress1-Dec-23 6:42
Salvatore Terress1-Dec-23 6:42 
GeneralRe: another "include" question... Pin
Richard MacCutchan1-Dec-23 6:55
mveRichard MacCutchan1-Dec-23 6:55 
AnswerRe: another "include" question... Pin
Maximilien29-Nov-23 2:33
Maximilien29-Nov-23 2:33 
Questionerror: member access into incomplete type Pin
Salvatore Terress27-Nov-23 6:07
Salvatore Terress27-Nov-23 6:07 
AnswerRe: error: member access into incomplete type Pin
Richard Andrew x6427-Nov-23 10:17
professionalRichard Andrew x6427-Nov-23 10:17 
GeneralSOLVED Re: error: member access into incomplete type Pin
Salvatore Terress27-Nov-23 10:44
Salvatore Terress27-Nov-23 10:44 
GeneralRe: SOLVED Re: error: member access into incomplete type Pin
Richard Andrew x6427-Nov-23 12:06
professionalRichard Andrew x6427-Nov-23 12:06 
AnswerRe: error: member access into incomplete type Pin
JudyL_MD27-Nov-23 10:21
JudyL_MD27-Nov-23 10:21 
QuestionApplication not Launching when converting from 32bit to 64bit in VS Pin
Member 1614225419-Nov-23 15:31
Member 1614225419-Nov-23 15:31 
AnswerRe: Application not Launching when converting from 32bit to 64bit in VS Pin
Richard MacCutchan19-Nov-23 21:41
mveRichard MacCutchan19-Nov-23 21:41 
AnswerRe: Application not Launching when converting from 32bit to 64bit in VS Pin
jschell20-Nov-23 7:23
jschell20-Nov-23 7:23 
QuestionC++ file handling Pin
Saboor Sarfraz18-Nov-23 7:11
Saboor Sarfraz18-Nov-23 7:11 
AnswerRe: C++ file handling Pin
Greg Utas18-Nov-23 8:42
professionalGreg Utas18-Nov-23 8:42 
AnswerRe: C++ file handling Pin
k505418-Nov-23 8:59
mvek505418-Nov-23 8:59 
AnswerRe: C++ file handling Pin
jschell20-Nov-23 7:30
jschell20-Nov-23 7:30 
Saboor Sarfraz wrote:
but instead of moving the cursor to the beginning of the current line it moves the cursor to the next line


Nope. A 'file' never ever does that.

Rather you are attempting to display the file using something else.

And that something else, not the file, is doing that.

Saboor Sarfraz wrote:
for the purpose of overwriting the existing txt.


Your code is absolutely correct. For what you state the purpose is.

So the problem is, as I stated above.

If you are on a windows machine you can open a Powershell console or a 'cmd' console. They are NOT the same.

Presumably you are using one of those then running your exe.

So try doing it with the other one.

If perhaps you are using an Apple Mac then you are perhaps out of luck since it always interprets the '\r' in the way you are seeing it behave.

modified 21-Nov-23 11:21am.

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.