Click here to Skip to main content
15,860,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get Window Handle to Modless Dialog Box After Create Pin
ForNow25-Jul-16 4:13
ForNow25-Jul-16 4:13 
AnswerRe: Get Window Handle to Modless Dialog Box After Create Pin
Victor Nijegorodov24-Jul-16 21:47
Victor Nijegorodov24-Jul-16 21:47 
QuestionGenerate Unique Ids Pin
Member 1053345022-Jul-16 8:33
Member 1053345022-Jul-16 8:33 
AnswerRe: Generate Unique Ids Pin
Richard MacCutchan22-Jul-16 21:11
mveRichard MacCutchan22-Jul-16 21:11 
AnswerRe: Generate Unique Ids Pin
leon de boer23-Jul-16 4:42
leon de boer23-Jul-16 4:42 
Questionlearning steganography Pin
jhonganteng22-Jul-16 4:54
jhonganteng22-Jul-16 4:54 
AnswerRe: learning steganography Pin
Richard MacCutchan22-Jul-16 4:58
mveRichard MacCutchan22-Jul-16 4:58 
QuestionCString Concatenation question Pin
ForNow21-Jul-16 6:56
ForNow21-Jul-16 6:56 
Hi
I am trying to concatenate a number of CString, problem is After the third it includes the NULL termination which delimits the string. Let me post the code
b_command, prog_location, end_addr and casid2 are all of type CString

C++
int starters = strtol(prog_location,&hold_ptr,16);
 int enders = starters + progsize;
 _itoa(enders,p = end_addr.GetBuffer(0),16);

 b_command = b_command + prog_location + "-" + end_addr + " " + casid2; 


b_command, prog_location, end_addr, and casid2 are all strings

After b_commnd = .....
the string containing end_addr has the NULL marker included in b_command making the data casid2 invisible I can see that casid2 is there after the NULL by looking in memory
AnswerRe: CString Concatenation question Pin
Jochen Arndt21-Jul-16 7:48
professionalJochen Arndt21-Jul-16 7:48 
GeneralRe: CString Concatenation question Pin
ForNow21-Jul-16 11:59
ForNow21-Jul-16 11:59 
GeneralRe: CString Concatenation question Pin
Saravanan Sundaresan24-Sep-16 20:07
professionalSaravanan Sundaresan24-Sep-16 20:07 
Question__interface keyword not practicable when derived class exports to dll? Pin
FriendOfAsherah20-Jul-16 23:17
FriendOfAsherah20-Jul-16 23:17 
Questionhow to make steganography in C++ Pin
jhonganteng20-Jul-16 21:35
jhonganteng20-Jul-16 21:35 
AnswerRe: how to make steganography in C++ Pin
CPallini20-Jul-16 22:14
mveCPallini20-Jul-16 22:14 
GeneralRe: Sorry? What is the operator 'shift up' (and 'shift down'?)? Pin
jhonganteng21-Jul-16 4:50
jhonganteng21-Jul-16 4:50 
AnswerRe: how to make steganography in C++ Pin
leon de boer21-Jul-16 1:57
leon de boer21-Jul-16 1:57 
Questionerror 2039 {dtor} is not element of ImyInterface - when does this happen? Pin
FriendOfAsherah20-Jul-16 20:23
FriendOfAsherah20-Jul-16 20:23 
AnswerRe: error 2039 {dtor} is not element of ImyInterface - when does this happen? Pin
FriendOfAsherah20-Jul-16 22:54
FriendOfAsherah20-Jul-16 22:54 
Questionprotected access specifier Pin
kinderu19-Jul-16 4:52
kinderu19-Jul-16 4:52 
AnswerRe: protected access specifier Pin
Richard MacCutchan19-Jul-16 5:29
mveRichard MacCutchan19-Jul-16 5:29 
GeneralRe: protected access specifier Pin
kinderu19-Jul-16 6:31
kinderu19-Jul-16 6:31 
GeneralRe: protected access specifier Pin
Richard MacCutchan19-Jul-16 7:02
mveRichard MacCutchan19-Jul-16 7:02 
QuestionRe: protected access specifier Pin
David Crow19-Jul-16 17:39
David Crow19-Jul-16 17:39 
AnswerRe: protected access specifier Pin
kinderu20-Jul-16 0:05
kinderu20-Jul-16 0:05 
QuestionRe: protected access specifier Pin
David Crow20-Jul-16 2:53
David Crow20-Jul-16 2: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.