• Advertisement
Sign in to follow this  

#error DXUT requires a Unicode build

This topic is 1430 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'm running into a bit of a problem:

 

I'm using Microsoft Visual 6.0. It's basically a 1998 compiler with windows XP. I'm using directx 9.0b.

 

I've been through all DirectX SDK's up to 10.0.

 

I'm down to the following problem. #error "DXUT requires a Unicode build".

 

I've tried to put it in the pre processor directive and all that but it's not working.

 

What can I do other than buy a new computer and a new compiler. Does anyone know how to re write this file so that it is in ansi, or anything else?

Share this post


Link to post
Share on other sites
Advertisement

There is no "switch button" in my version of Visual Studio. However I figured it out, for anyone else that has this problem:

 

1. Anywhere you see MBCS (mulitbyte character set) project ->settings->C++ General, replace MBSC with UNICODE, and _UNICODE.

UNICODE for the compile and _UNICODE for the run time library.

 

Hit the resources link and add the same to Pre-Processor definitions and Project Options.

 

Then hit the MIDL button and do the same.

 

Now it will compile without the unicode error.

 

However now that I've gotten past that I'm getting another error "usp10.h" no such file or directory. This is true I've done searches and the file doesn't exist on my computer.

I've gotten the latest updates for windows XP and my compiler. What file or library am I still missing

Share this post


Link to post
Share on other sites
However now that I've gotten past that I'm getting another error "usp10.h" no such file or directory.

Well it appears to be part of the Windows SDK version 7.0A( visual studio 2010 ).

 

Is there a reason that you are not using a newer version of Visual Studio/DirectX ?

Share this post


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

  • Advertisement