Game Development Community

Missing: strsafe.h??

by Markus Nuebel · in Torque Game Engine Advanced · 06/03/2004 (12:51 pm) · 11 replies

When trying to compile TSE I get the error:

fatal error C1083: Cannot open include file: 'strsafe.h': No such file or directory

I have updated to the summer sdk and downloaded all the tse stuff, but there is no strsafe.h.

I even searched my whole disk, to check, if it is part of some othere sdk or the VC includes, but without success.

What's wrong here?

#1
06/03/2004 (1:37 pm)
Hmm, we haven't seen that one. It's included by engine/gfx/D3D/NV_Error.h. What compiler are you using? You might want to take a look at that file and see if you can tweak it to work for you.
#2
06/03/2004 (8:45 pm)
Strsafe.h is included in the Platform SDK. You will probably need to download it from Microsoft. The core isn't too big.
#3
06/03/2004 (10:47 pm)
I am using VC++ .net 2002 (guess it's 7.0).

Thanks, Ken.
The needed .lib and .h are in the Microsoft Platform SDK, the full SDK is around 300MB, so maybe it is a good idea, to add the strsafe.lib/.h to the CVS, or at least make the Platform SDK a requirement for TSE?

(There is a partial download, but you cannot tell, which package contains the Core SDK :( )
#4
06/03/2004 (11:12 pm)
Http://www.microsoft.com/msdownload/platformsdk/sdkupdate/default.htm?p=/msdownload/platformsdk/sdkupdate/home.htm

On the left side, you can choose Core SDK. It's around 200MB, but you can unselect the docs and samples and 64-bit, so it's more reasonable.

I don't believe you can redistribute parts of the Platform SDK.

These files should be part of the next DirectX update though, which will help.
#5
06/04/2004 (12:37 am)
The platform SDK is included with visual studio so you should be able to install it from your visual studio setup. By default the win32sdk and other platform sdks are not selected when you install so you probably just missed it.
#6
06/04/2004 (12:47 am)
Oh.

Must have missed this. Will check my installation today evening.

Since I always use "Custom Setup" and strip my installations down to what I need, this my be the case.

Thanks Peter.
#7
06/04/2004 (5:38 am)
Ok had a chance to check and the core sdk is only installed as standard with VS 2003.

VS2002 does not install strsafe.h :oP or the core sdk.
#8
06/04/2004 (9:39 am)
Whoops! :)
#9
06/07/2004 (8:34 am)
I ran into this same problem earlier I have posted a workaround in a different thread for us VS .NET 2002 users
#10
09/11/2005 (11:00 am)
I've downloaded the platform sdk and have the strsafe.h file on my system but it still throws the error? How do I include it in the includes for the project? (I am using VS 2002)

(EDIT)
Nevermind I was clicking right past it in the options menu.
#11
09/11/2005 (6:41 pm)
VS2002 is not really supported. You should consider updating at some point.