473,395 Members | 1,692 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,395 software developers and data experts.

Warnings associated with sdks

Hello,

I am getting several warnings associated with direct x h files. I'll post
one of them as an example:

1>C:\Program Files\Microsoft DirectX SDK (February
2007)\Include\strsafe.h(5595) : warning C4996: '_vsnprintf': This function or
variable may be unsafe. Consider using _vsnprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1 C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(339)
: see declaration of '_vsnprintf'
I see _CRT_SECURE_NO_WARNINGS can be used to disable the warnings, but why
is Microsoft still using these functions? The sdk was released Feb. 2007.
Does anyone know if there are plans to fix these warning in a future release?

Thanks for any info.

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford
Apr 11 '07 #1
2 1490
"David" <Da***@discussions.microsoft.comwrote in message
news:B6**********************************@microsof t.com...
I am getting several warnings associated with direct x h files. I'll post
one of them as an example:
That's due to what some miight call an excess of caution. The goal is to
move developers away from functions which can be used to cause buffer
overruns. As you already know, buffer overruns are a prime means that
malware "authors" use to wreak their havoc.
I see _CRT_SECURE_NO_WARNINGS can be used to disable
the warnings, but why is Microsoft still using these functions?
I don't speak for them but every development shop needs to address risk and
the amount of time it takes to address "issues". And they are stuck between
a rock and a hard place : if they change too much they risk breaking old
code written by me and you.

It's just my opinion, but I'd say the best plan is to scrutinize old code to
make sure that buffer overruns can't occur in places where you use the old
functions and to insure that new code does not use them anymore. YMMV.

Regards,
Will
Apr 11 '07 #2
.. And they are stuck between a rock and a hard place : if they change
too much they risk breaking old code written by me and you.
I understand, and will live with these warning.

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford

Apr 11 '07 #3

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

Similar topics

10
by: Kylotan | last post by:
I have the following code: def IntToRandFloat(x): """Given a 32-bit integer, return a float in """ x = int(x) x = int(x << 13) ^ x return...
1
by: Alex Maghen | last post by:
Do you guys have a map that shows me... well... all of Microsoft's published SDKs and how (if) they map to available .NET namespaces/SDKs? This is all incredibly comfusing. I want to avoid using...
0
by: Steve Barker | last post by:
Hi guys! In Visual Studio .NET, I like to enable auto-generation of XML documentation on the project properties screen, by adding an XML file name under "Configuration Properties" --> "Build"...
22
by: John Fisher | last post by:
void f(int p) { } Many (most?) compilers will report that p is unreferenced here. This may not be a problem as f may have to match some common prototype. Typically pointers to functions are...
3
by: clintonG | last post by:
In the early 1990s there were quite a few Interactive Voice Response (IVR) SDKs that used VB for development. What happened to this category. Its like vanished. Does anybody know how IVR...
3
by: gil | last post by:
Hi, I'm trying to find the best way to work with compiler warnings. I'd like to remove *all* warnings from the code, and playing around with the warning level, I've noticed that compiling with...
11
by: cmp | last post by:
Hello, If I have a Visual studio project configured to vbuild againts one SDK. How is the normal procedure to build that solution against other different SDK that I have installed after previous...
0
by: Trammel | last post by:
Does anyone know where I can find APIs, Objects, SDKs or any technical information on BitTorrent protocols or StreamingAudio? I have tried various searches but all have came-up "blank" :¬/ I...
1
by: Robert Singer | last post by:
Platform: winXP, excel 2003 Python 2.5.2 XLWriter 0.4a3 (http://sourceforge.net/projects/pyxlwriter/) Is anyone here using this very nice package, for writing excel files? I'm using it on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.