Need to log the content of buf using the LogMethod() below the problem is that
LogMethos only accepts a “Const CString&”
char buf[1024];
strcpy(buf, cErrorMsg);
// need to pass to LogMethod "buf" how do i do that?
log.LogMethod(const CString &);
Thans
Rev
Reversed
If you’re talking about MFC
CString, as far as I can tell, it should have a non-explicit constructor takingTCHAR const *. In other words, the following should work.If it doesn’t, please post the error message.