All pastes #586864 Raw Edit

bad mfc code

public text v1 · immutable
#586864 ·published 2007-06-24 02:30 UTC
rendered paste body
char *nText;

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);