Migrating VC6.0 -> Visual Studion 2008 - depricated functions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I have been working with VC6.0 for a long time.
Now I have access to Visual Studio 2008 (not at
home), so I tried to compile an old VC6.0 project
with the new IDE.

It worked fine and did not require many changes
in the code. However there were some warnings
that I use depricated functions like fopen,
sprintf, _tcsncpy an I better should use their
save equivalents fopen_s, sprintf_s, _tcsncpy_s.

No problem, the code compiles with those "_s"
functions. Reading the MSDN documentation I find
that fopen_s is availible from Win95 on.

I would like to maintain the project for both
VC6.0 and Visual Studio 2008. But in VC6.0 I cannot
find any header/lib for fopen_s. Not in the
headers which ship with VC6.0SP6 nor in the
February 2003 SDK.

Am I missing something or is it simply not
possible to use functions like fopen_s in VC6.0?
.



Relevant Pages

  • Re: Migrating VC6.0 -> Visual Studion 2008 - depricated functions
    ... so I tried to compile an old VC6.0 project ... VC6.0 and Visual Studio 2008. ... find any header/lib for fopen_s. ... The easy way is to ignore the warnings and continue doing what you're doing. ...
    (microsoft.public.vc.mfc)
  • Re: MS Visual Studio 6.0 compile failure
    ... > The following code compiles here in strict mode ... > but it does not compile using MS Visual Studio 6.0. ... Its pretty well known that MSVC++ 6.0 does not compile templates well. ...
    (comp.lang.cpp)
  • Re: BUG: simulink 7.6 (r2010b) and visual c++ 2010 compiler
    ... I have 64-bit Windows 7 and MATLAB R2010b. ... I could compile yprime.c into a mexw64 file and run it. ... I tried to compile simulink code using the VC++ 2008 complier, ...
    (comp.soft-sys.matlab)
  • Re: Upgraded Web Service from VS2003 to VS2005 and all Hell breaks
    ... Visual Studio 2005 Web Application Projects ... "Because the Web Application Project model uses the same conceptual ... My web service project doesn't even have a bin folder. ... When I compile in batch from Visual Build Pro, ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: compile errors
    ... Microsoft Online Support ... | Thread-Topic: compile errors ... I started it with Visual Studio 2005 and then moved to ... Do I have to install Visual Studio 2005 also as it was ...
    (microsoft.public.dotnet.framework.aspnet)