Jump to content
  • Advertisement
Sign in to follow this  
cyber_wiz_2007

NVidia SDK

This topic is 4428 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

Hi, I trying to compile the samples from the latest NVidia SDK, however I am using Visual Studio Express 2005 and it seems that the SDK was written for Visual Studio 2003 and the compliler can't find a file called afxres.h in the resource file. does anyone know how to compile the NVidia SDK samples using Visual Studio 2005?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Starfox
What sample is it? afaik, afxres.h is part of MFC, which isn't included with VC Express.


the sample I was interested in today was HDR with 2x FP16 MRTs, however I'd like to be able to compile all the DirectX and OpenGL samples without any problems.

How can I install MFC on VC Express?


Share this post


Link to post
Share on other sites
I'm not a Direct3D guy, so I can't help you much there.

As for MFC on VC Express, you'll need to obtain the MFC source, read: Buy VC pro.

Share this post


Link to post
Share on other sites
The MFC problem exists in the GL programs too.
I noticed that the compatible d3d programs include <WinResRc.h> instead of <afxres.h> and replacing this seems to solve the problem. I now have other build problems, such as missing libs or multiply defined symbols etc

Share this post


Link to post
Share on other sites
i think that the platform sdk could help.
you can download it free from microsoft

Share this post


Link to post
Share on other sites
Quote:
Original post by Starfox
What sample is it? afaik, afxres.h is part of MFC, which isn't included with VC Express.


Yup it's MFC stuff that VS2005 express versions don't come with.
You could try this:
Oddly enough, VC++ adds afxres.h to resource files even when you aren't using an MFC project, and yet the file may only be installed if you install MFC. This perticular file isn't actually required, so to fix the error you can edit the .rc file in notepad and replace both occurances of "afxres.h" with "winres.h" (note that there should be two of them, and you need to change both).

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!