Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
I hope this helps. It's from the site that I almost always consult for for C++/STL details:

std::basic_ostream<CharT,Traits>::seekp - cppreference.com[^]

seekp lets you reposition the "cursor" in a read-write file (ofstream) so you can overwrite characters starting at that point. But if your replacement isn't the same size as what you want to overwrite, you'll have to move the rest of the file up (if the replacement is shorter) or down (if the replacement is longer, in which case you have to do this first). It's usually easier to simply create a new file instead manipulating the original. This also preserves the original in case your software misbehaves. Smile | :)
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

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 
Question&foo[bar] or (foo + bar) ? Pin
honey the codewitch16-Nov-23 11:48
mvahoney the codewitch16-Nov-23 11:48 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
k505416-Nov-23 16:14
mvek505416-Nov-23 16:14 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
JudyL_MD17-Nov-23 3:15
JudyL_MD17-Nov-23 3:15 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
CPallini16-Nov-23 20:08
mveCPallini16-Nov-23 20:08 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
Peter_in_278017-Nov-23 18:28
professionalPeter_in_278017-Nov-23 18:28 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
Richard MacCutchan17-Nov-23 22:11
mveRichard MacCutchan17-Nov-23 22:11 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
Richard MacCutchan16-Nov-23 21:29
mveRichard MacCutchan16-Nov-23 21:29 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
jschell17-Nov-23 5:36
jschell17-Nov-23 5:36 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
honey the codewitch17-Nov-23 5:38
mvahoney the codewitch17-Nov-23 5:38 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
trønderen17-Nov-23 8:35
trønderen17-Nov-23 8:35 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
honey the codewitch17-Nov-23 8:37
mvahoney the codewitch17-Nov-23 8:37 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
trønderen17-Nov-23 11:07
trønderen17-Nov-23 11:07 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
jschell20-Nov-23 7:11
jschell20-Nov-23 7:11 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
honey the codewitch20-Nov-23 7:20
mvahoney the codewitch20-Nov-23 7:20 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
JudyL_MD17-Nov-23 7:53
JudyL_MD17-Nov-23 7:53 

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.