sprintf_s downgrade possible ?

  • Thread starter Thread starter PawelSokolowski
  • Start date Start date
P

PawelSokolowski

Hi all,

I was not aware that VS2008 does not build NT 4.0 valid applications, and I
migrated from VS2003 to VS2008
Unfortunatelly one of my client still uses NT on about 200 computers, and
cannot upgrade to XP, they are simply too old.

While migrating I made about 1800 changes in code, and I don't really like
the idea of changing everything back.
Many of those changes were securing sprintf function.
sprintf(...) -> sprintf_s(...)

Do you have some idea about compiling sprintf_s under VS2003 ???

I doule like to create a sprintf_s function, passing arguments to regular
sprintf.
Since it has variable list of arguments, I have a problem how to pass them.
I would appreciate any suggestions.


Regards
Pawel
 
I was not aware that VS2008 does not build NT 4.0 valid applications

Out of interest, what aspects prevent VS2008 built applications
running on NT4?

Dave
 
Hi David,
Out of interest, what aspects prevent VS2008 built applications
running on NT4?

The CRT (and possibly MFC) depend on newer versions of Windows.
Building a win32 app form scratch without CRT and MFC should still work.
 
PawelSokolowski said:
Hi all,

I was not aware that VS2008 does not build NT 4.0 valid applications,
and I migrated from VS2003 to VS2008
Unfortunatelly one of my client still uses NT on about 200 computers,
and cannot upgrade to XP, they are simply too old.

While migrating I made about 1800 changes in code, and I don't really
like the idea of changing everything back.
Many of those changes were securing sprintf function.
sprintf(...) -> sprintf_s(...)

Do you have some idea about compiling sprintf_s under VS2003 ???

I doule like to create a sprintf_s function, passing arguments to
regular sprintf.
Since it has variable list of arguments, I have a problem how to pass
them. I would appreciate any suggestions.
vsprintf



Regards
Pawel
 
Back
Top