Jump to content
  • Advertisement
Sign in to follow this  
Abadd

DirectX help please

This topic is 4809 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've been learning C++ for a while now, and have just downloaded the new DirectX SDK. And I have but one simple wish: to compile a few of the examples. I tried it in VC++ and DevC++ but that doesn't seem to work. I also tried Borland C++ builder (which someone told me was similar to VS.Net). I tried a tutorial but no success. I think I set up all the lib files etc up correctly but... Do I really need VS.Net for DirectX? If I do, does anyone know where I can download a trial or something (the link on msdn for the cd doesn't work). Or if anyone knows of a good tutorial or something it'd be greatly appreciated! Borland errors (for EmptProject aka SimpleSample) [C++ Warning] strsafe.h(6201): W8068 Constant out of range in comparison [C++ Error] crtdbg.h(52): E2451 Undefined symbol 'wsprintf_instead_use_StringCbPrintf_or_StringCchPrintf' [C++ Error] crtdbg.h(52): E2268 Call to undefined function '_T' [C++ Error] winmain.cpp(321): E2268 Call to undefined function '_CrtSetDbgFlag' [C++ Error] winmain.cpp(321): E2451 Undefined symbol '_CRTDBG_ALLOC_MEM_DF' [C++ Error] winmain.cpp(321): E2451 Undefined symbol '_CRTDBG_LEAK_CHECK_DF'

Share this post


Link to post
Share on other sites
Advertisement
Yup AFAIK you need either .NET Studio 2003 or the 2005 beta.

Try googling Visual Studio 2005...it should point you to a page on lab.msdn.microsoft.com

Secondly, you need to enable UNICODE in the compiler. You'll know how once you use a studio .NET product (the compiler error message will tell you how to do this).

hth,

Share this post


Link to post
Share on other sites
to define unicode just do this
#define UNICODE
#define _UNICODE

not sure exactly why you have to do both but at least for .Net you do.

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!