Game Development Community

_crt_secure_no_deprecate And Vc2005 Express

by Bad_mofo · in Torque Game Engine Advanced · 12/11/2006 (8:40 pm) · 2 replies

Hi everybody , ived followed the instruction on the web site for compiling whit visual studio c++ 2005 express and ived got those warning , so can i change the specified file

c:\program files\microsoft directx sdk (october 2006)\include\strsafe.h(5595) : warning C4996: '_vsnprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(339) : see declaration of '_vsnprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\program files\microsoft directx sdk (october 2006)\include\strsafe.h(5635) : warning C4996: '_vsnwprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\wchar.h(719) : see declaration of '_vsnwprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\program files\microsoft directx sdk (october 2006)\include\strsafe.h(5719) : warning C4996: '_vsnprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(339) : see declaration of '_vsnprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\program files\microsoft directx sdk (october 2006)\include\strsafe.h(5871) : warning C4996: '_vsnwprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\wchar.h(719) : see declaration of '_vsnwprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\documents and settings\mathieu\desktop\tse\engine\platformwin32\dxversionchecker.cpp(149) : warning C4996: '_wsplitpath' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdlib.h(782) : see declaration of '_wsplitpath'
Message: 'This function or variable may be unsafe. Consider using _wsplitpath_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'


so wheres that file named _vsnprintf_s and how to change the old one to that one .



ived got those error too :

....\tse\lib\libqslim\mixmsg.cxx(79) : warning C4996: 'vsprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'vsprintf'
Message: 'This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
MxBlockModel.cxx
......\tse\lib\libqslim\mxblockmodel.cxx(135) : warning C4996: 'strdup' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(205) : see declaration of 'strdup'
Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'

thx a lot for ure future advice

#1
12/11/2006 (10:17 pm)
And now i get this and i dont know why , im really new whit that type of working , and its getting me frustrated as hell

------ Skipped Build: Project: TSE Lib, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
------ Skipped Build: Project: max2dtsExporter Max4, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
------ Skipped Build: Project: ms2dtsExporter, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
------ Skipped Build: Project: map2dif plus, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
------ Skipped Build: Project: map2dif, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
------ Skipped Build: Project: max2dtsExporter Max3, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
------ Build started: Project: Torque Shader Engine, Configuration: Debug Win32 ------
#2
12/11/2006 (11:34 pm)
All of that looks fine.. you can add the _CRT_SECURE_NO_DEPRECATE to properties for the various projects in C++ (Preprocessor options)...

The projects not building there is fine, as those are for tools and such. The one that matters is the bottom one which looked to start building and should output an exe, barring issues