Jump to content
  • Advertisement
Sign in to follow this  
DesignerX

DirectShow header file problems

This topic is 4307 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I got the "Microsoft® Windows® Platform SDK Collection for Windows Server 2003 SP1" platform sdk When including dshow.h I get the following compilation warnings. Should I get an updated platform sdk or what ? I'm using VC++ 2005 express edition. thx. ------ Build started: Project: Air Hockey, Configuration: Debug Win32 ------ Compiling... Game.cpp c:\program files\microsoft visual studio 8\vc\include\cstdio(33) : warning C4995: 'gets': name was marked as #pragma deprecated c:\program files\microsoft visual studio 8\vc\include\cstdio(37) : warning C4995: 'sprintf': name was marked as #pragma deprecated c:\program files\microsoft visual studio 8\vc\include\cstdio(40) : warning C4995: 'vsprintf': name was marked as #pragma deprecated c:\program files\microsoft visual studio 8\vc\include\cstring(20) : warning C4995: 'strcat': name was marked as #pragma deprecated c:\program files\microsoft visual studio 8\vc\include\cstring(21) : warning C4995: 'strcpy': name was marked as #pragma deprecated c:\program files\microsoft visual studio 8\vc\include\cwchar(34) : warning C4995: 'swprintf': name was marked as #pragma deprecated c:\program files\microsoft visual studio 8\vc\include\cwchar(35) : warning C4995: 'vswprintf': name was marked as #pragma deprecated c:\program files\microsoft visual studio 8\vc\include\cwchar(37) : warning C4995: 'wcscat': name was marked as #pragma deprecated c:\program files\microsoft visual studio 8\vc\include\cwchar(39) : warning C4995: 'wcscpy': name was marked as #pragma deprecated

Share this post


Link to post
Share on other sites
Advertisement
I don't think it has anything to do with the downloaded SDK, more with the functions you appear to be using. You're including stuff, cstdio, cstring, etc which are deprecated, which means Microsoft thinks there are better/safer functions you could use.

Since their only warnings and the support for those functions will persist for a while, you haven't got major problems, but you should reconsider why you use old headers.

Share this post


Link to post
Share on other sites
the thing is, these warnings appeared only after adding the "dshow.h" header file
without it, it compiles with no warnings/errors

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!