Visual C++ 10 lowercases the __FILE__ macro
问题 The __FILE__ preprocessor macro in Visual C++ 10 expands to the name of the source module, but in lowercase, e.g. c:\path\to\my\file\somesource.cpp when the file name is actually SomeSource.cpp Is it possible to change this behaviour? 回答1: As suggested by Hans Passant, I asked the question on Microsoft Connect and got the following answer: Thanks for noting this. This behavior has existed for a while, at least back to VS 2008. Changing the default behavior could potentially be a breaking