User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 430,098 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,160 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 646 | Replies: 4
Reply
Join Date: Jan 2008
Location: USA East Cost
Posts: 389
Reputation: CoolGamer48 is on a distinguished road 
Rep Power: 1
Solved Threads: 37
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Whiz

Help Help w/ a book

  #1  
Feb 2nd, 2008
Don't know if anyone here will be able to help me - but here I go.

I'm reading Beginning Game Design by Jonathon S. Harbour. In a chapter on DirectSound, the author says to go the DirectX SDK, and then go to \samples\c++\common to get four files (dsutil.h, dxutil.h, dsutil.cpp, and dxutil.cpp), and add them as source/header files in the project. The thing is, the edition of the book I have is old, and is using an older SDK (still version 9, though). In the SDK I have (August 2007), there is no \common directory within \samples\c++. I started a thread on the author's personal forum (jharbour.com/forum), asking what the "new" versions of there four files were. Mr. Harbour responded saying that the files could be downloaded from his site. So I download them, decompress the .rar, and get the files I need. I type the rest of the code, try to compile, but it won't work because one of the four files I got from the .rar requires another file, dxstdafx.h. I find the source for that file on krugle.org, and then find out that dxstdafx.h needs other files: DXUT.h, and other header files that start with DXUT. All of these files were in my version of the SDK, so I added that directory to my complier's include directories, compile a third time, and now I get some message saying that the character encoding needs to be in unicode (no idea what that means), and it tells me to go to the project's setting and change a setting. I do that, and I get a whole bunch of other errors. I change it back, but I'm still getting those errors that I wasn't getting before I changed the character set in the project properties.

So... at that point I figure I'm going too deep into things that I don't have too much knowledge on.

Now, if anyone actually read this far, can you try to help me understand what's going on and how to get this project to compile? I realize this can all be solved by downgrading my SDK, but I'd rather not have to do that. Does anyone know what the "new" dsutil.h, dxutil.h, dsutil.cpp, and dxutil.cpp are, or if they even exist in newer SDKs?

Please and thank you.
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,251
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 38
Solved Threads: 940
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Help w/ a book

  #2  
Feb 2nd, 2008
What compiler are you using? VC++ 2005 or VC++ 2008 ? Those two compilers enable UNICODE by default. UNICODE is a standardized way to use non-English languages is programs and requires some changes to standard C or C++ character arrays. If you don't care about foreign languages then you should just turn UNCODE off, as you have already apparently done.

Beyond that, sorry but I can't help you.
Reply With Quote  
Join Date: Jan 2008
Location: USA East Cost
Posts: 389
Reputation: CoolGamer48 is on a distinguished road 
Rep Power: 1
Solved Threads: 37
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Whiz

Re: Help w/ a book

  #3  
Feb 2nd, 2008
Originally Posted by Ancient Dragon View Post
What compiler are you using? VC++ 2005 or VC++ 2008 ? Those two compilers enable UNICODE by default. UNICODE is a standardized way to use non-English languages is programs and requires some changes to standard C or C++ character arrays. If you don't care about foreign languages then you should just turn UNCODE off, as you have already apparently done.

Beyond that, sorry but I can't help you.

I'm using 2008. They enable unicode by default? When I initially looked at the project properties the character set was on "Use Multi-Byte Character Set".
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,251
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 38
Solved Threads: 940
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Help w/ a book

  #4  
Feb 2nd, 2008
yup -- that means UNICODE. Set it to "Not set"
Reply With Quote  
Join Date: Jan 2008
Location: USA East Cost
Posts: 389
Reputation: CoolGamer48 is on a distinguished road 
Rep Power: 1
Solved Threads: 37
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Whiz

Re: Help w/ a book

  #5  
Feb 3rd, 2008
Originally Posted by Ancient Dragon View Post
yup -- that means UNICODE. Set it to "Not set"

Wait, Use Multi-Byte Character Set means unicode?

In that case, what does Use Unicode Character Set mean?
Last edited by CoolGamer48 : Feb 3rd, 2008 at 11:43 am.
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 2:57 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC