logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Doornbosch" <peter.doornbo...@gmail.com>
Subject Re: Visual C++ Assertion failed when using LOG4CXX_DECODE_CHAR macro in statically linked MFC project
Date Mon, 01 Dec 2008 13:01:15 GMT
>
> I guess i'm missing something then. I've been looking for a way to convert
> a string (whether a CString or a simple C zero-terminated character string,
> i don't care) into a LogString.
>

Got it now. As  the application is defining _ MBCS, LPCTSTR is actually a
pointer to a char, which i must convert to unicode (using
MultiByteToWideChar), as the LogString constructor is expecting unicode, is
that right?

Thanks,
Peter

Mime
View raw message