All pastes #586865 Raw Edit

bad mfc code

public text v1 · immutable
#586865 ·published 2007-06-24 02:30 UTC
rendered paste body
char *nText;
CString oldText, newText;

sprintf(nText, "Invalid address at line %d for %s.\r\n", j, address1);
CString newText(nText);

if (oldText) oldText += newText;
else oldText = newText;

pDialog->SetDlgItemText(IDC_ERROR, oldText);