wrap the text in
_T()
, you're
working with wide strings, and giving
Format
a narrow
m_dbFeeAmt.Format(_T("%.2f"), FeeAmt);
m_dbPkUpAmt.Format(_T("%.2f"), PickupAmt);
(nods to SA)
The
_T()
macro is extremely useful, it substitutes as appropriate, for the string types you're using, as a rule of thumb, wrap all const strings in
_T()
, similarly use the
_t*
string manipulators (like
_tprintf
for
printf
and _tcstok for
strtok
, for example)