Beginning from Visual Studio 2012 Update 2, the default StrategyInterfaceUnit file can no longer be compiled. The following three Errors are thrown and the compile process is ending unsuccessful.
Would be good if the StrategyInterfaceUnit file would be adusted accordingly in a later Version. However there is a workaround for this: Just put #define _CRT_SECURE_NO_WARNINGS at the beginning of MAIN and depreciation is disabled.
Error 3 error C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\users\forextester\documents\visual studio 2012\projects\attachtesttodelete\attachtesttodelete\StrategyInterfaceUnit.h 1580 1 AttachTestToDelete
Error 1 error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\users\forextester\documents\visual studio 2012\projects\attachtesttodelete\attachtesttodelete\StrategyInterfaceUnit.h 1083 1 AttachTestToDelete
Error 2 error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\users\forextester\documents\visual studio 2012\projects\attachtesttodelete\attachtesttodelete\StrategyInterfaceUnit.h 1579 1 AttachTestToDelete
strcat, strcpy is depreciated in VS 2012 Update 2
-
- Posts: 14
- Joined: Sun Sep 04, 2011 6:36 am
Who is online
Users browsing this forum: No registered users and 16 guests