How to prevent C6284 when using CString::Format?
Posted
by Sorin Sbarnea
on Stack Overflow
See other posts from Stack Overflow
or by Sorin Sbarnea
Published on 2010-04-08T07:02:24Z
Indexed on
2010/04/08
7:03 UTC
Read the original article
Hit count: 464
The following code is generating warning C6284 when compiled with /analyze
on MSVC 2008 : object passed as parameter '%s' when string is required in call to function.
CString strTmp, str;
str = L"aaa.txt"
strTmp.Format (L"File: %s", str);
I'm looking for a nice solution for this that would not require static_cast
© Stack Overflow or respective owner