4 of 6 people found the following review helpful
Verified Purchase(What is this?)
This review is from: Beginning Game Programming (Paperback)
I have only just started using this book, so technically you can ignore the 3 stars, I just wanted to put a warning on for anyone getting this book. It reads fairly easily but none of the code worked properly, I did some searching online and I found the answer on some forums. If you get an error when compiling them that is similar to the error below
"error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char ' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast"
Then the solution is typed below, it worked for me, hope it works for anyone else having the same trouble. And by the way, I'm using Visual C++ 2005, people with different compilers may or may not have this trouble at all.
"Project -> Properties -> Configuration Properties -> General -> Character Set
Set that setting to Use Multi-Byte Character Set"
Tracked by 1 customer
Sort: Oldest first | Newest first
Showing 1-2 of 2 posts in this discussion
Initial post: 9 Aug 2008 10:42:57 BDT
Stephen Watson says:
An update to my earlier comment.
The book is relatively easy to follow and gives you questions and tasks to do at the end of each chapter to make sure you understand what it was about.
It teaches the basics of DirectInput and DirectSound and 2d techniques such as sprites and tiling.
The end result is a 3D game of Breakout which is quite good, but thats as far as it goes. It does not teach AI or games with any enemies, just bouncing the ball against blocks and getting points, so it is a good starter book but you will be wanting more when you've finished.
Posted on 29 Sep 2011 09:04:05 BDT
You realise that in the book it does tell you that.
Page 21 "Now lets resolve this error. It has to do with the character set"
So this review is quite unfair considering it dedicates about a page spread over 2 pages about how to fix this error and a bit of information about ANSI vs Unicode
‹ Previous 1 Next ›