In Visual Studio 2010, for a loop's initialization variable is not available out of for loop scope, unlike Visual C++ 6.0. Whenever we compile old codes (generated in VC++ 6.0) using newest version, it annoys us. Then, take easy, and change project option to release your blood pressure.
Go to "Project property pages - C/C++ - Language - Force Conformance in For Loop Scope", and select "No (/Zc:forScope-)".
For more information, "http://msdn.microsoft.com/en-us/library/84wcsx8x.aspx".
Subscribe to:
Post Comments (Atom)
-
3 vertices and cross product If 3 vertices' coordinates are given, the size of the cross product of the two vectors is same to two ...
-
char path[_MAX_PATH]; const char* varName = "[system environment variable name]"; size_t len; getenv_s(&len, path, 80, varName...
No comments:
Post a Comment