473,387 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

sprintf_s downgrade possible ?

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

Jul 1 '08 #1
8 3107
>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
Jul 1 '08 #2
Hi David,
>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?
The CRT (and possibly MFC) depend on newer versions of Windows.
Building a win32 app form scratch without CRT and MFC should still work.

--
SvenC
Jul 1 '08 #3
PawelSokolowski wrote:
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

Jul 1 '08 #4

"PawelSokolowski" <Pe*****@wp.plha scritto nel messaggio
news:Oa****************@TK2MSFTNGP02.phx.gbl...
Many of those changes were securing sprintf function.
sprintf(...) -sprintf_s(...)

Do you have some idea about compiling sprintf_s under VS2003 ???
In addition to what others wrote, you may consider also StringCchPrintf
function:

http://msdn.microsoft.com/en-us/libr...41(VS.85).aspx

it is available in VS.NET 2003, too.

HTH,
Giovanni
Jul 1 '08 #5
>Since it has variable list of arguments, I have a problem how to pass
>them. I would appreciate any suggestions.

vsprintf

could you be more specific ?
Jul 1 '08 #6
vsprintf

I got it, thanks

Regards
Pawel
Jul 1 '08 #7
In addition to what others wrote, you may consider also StringCchPrintf
Giovanni

Thanks Giovanni,
This is pretty simple solution :)

Regards
Pawel
Jul 1 '08 #8

"PawelSokolowski" <Pe*****@wp.plha scritto nel messaggio
news:OW**************@TK2MSFTNGP03.phx.gbl...
>In addition to what others wrote, you may consider also StringCchPrintf
Giovanni


Thanks Giovanni,
This is pretty simple solution :)
You're welcome.

Sometimes simple solutions can do a good job :)

Giovanni

Jul 1 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Richard Shea | last post by:
Hi - I have just installed ZODB for the first time. However after I'd finished I realised that I'd installed a development release and not a stable release so I'd like to downgrade or remove the...
3
by: joshsackett | last post by:
Hi all, I was running an MSDN version of SQL 2000 Developer Edition on a server until I accidentally upgraded it to Enterprise Edition while attempting to install some Management Tools. Is it...
1
by: Matt S | last post by:
Does the liscense for the VC++.Net 2003 allow the user to purchase a downgrade to VC++.NET 2002? DO I need to buy a standard version of VC++.NET to downgrade? I need to get VC++ 2002, but I can't...
4
by: Hyo-Han Kim | last post by:
Hi.. someone built app. with VC++.NET .. But It cause error on Windows 98 SE .. No one can correct the error. So I would like to downgrade the app to VC++ 6.0 .. The application should...
2
by: heidi.mu | last post by:
Anyone knows how to downgrade wav file? For example downgrade from 22k 16-bit wav file to 8k 8-bit wav file ?
0
by: Eric | last post by:
I have downgrade discs from MS that are no longer available. Downgrade legally from VB.net to VB6. eric3@bigfoot.com
7
by: Sharon | last post by:
Hey. Any of you know a tool that can help downgrade a 2.0 application to 1.1? Thanks, Sharon.
0
by: rdraider | last post by:
Does anyone know more details about "downgrade rights". Do you need to ask MS for this right? How do you get a CD key (a legit key) for SQL 2000 if you urchase SQL 2005. From MS Licensing FAQ...
5
by: incrediblesuperdude | last post by:
Hi everybody, I have a problem with a bug in the sp1 of .Net 2.0 which is reported on this page: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx... Because of this a...
0
by: PawelSokolowski | last post by:
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.