This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Game Guru book, source error?


Game Guru book, source error?

Postby RwGast » Jul 25, 2001 @ 5:26pm

I just got that book Tricks of the Windows Game Programming Guru's. I bought it becuase i saw it had a high reccomendation everywhere, and i saw people on this board refer to it quite a few times. But i belive there may be somthing wrong with the source code for freak-out, the first game in the book. I have added ddraw.lib and ddraw.h into my workspace, along with Freakout.cpp and the blackbox files but msvc++6 gives me an error in blackbox.h when i try to compile an exe. The error is<br><br>blackbox.h(34)"Missing ';' before identifer lpdd"<br>blackbox.h(34)"unexpected end of file found"<br><br>blackbox.h(34)"Missing ';' before identifer lpdd"<br>blackbox.h(34)"unexpected end of file found"<br>4 errors 0 warnings<br><br>Ya thats right the same errors twice. I checked out the .h file and there wasn't any ; missing.  I was just wondering since this seams to be a popular book if anyone knows the fix for this.<br><br>Also does anyone know how to turn on line numbers in msvc++ 6?
http://www.angelfire.com/ego/esoteric if you like to play quake3 keep your eye on this site
User avatar
RwGast
pm Member
 
Posts: 1123
Joined: Jun 28, 2001 @ 7:36pm
Location: California, USA


Re: Game Guru book, source error?

Postby Moose or Chuck » Jul 25, 2001 @ 5:45pm

look through the header file mentioned around line 34 (just right click the error and press Go To Error) and look for any general mistakes, like no " or ) where they should be. That would cause that error too. I don't think I ever tried to compile the game from the source on the CD, so I'd have to go back and look through it. <br><br>And yes, errors and typos are in books, so watch out for em. It's the autor's way of testing your knowledge (like how bugs in Windows are features).<br><br>The line number should be displayed in the status bar down towards the bottom of the MSVC++ window. But if you ever get an error message that tells you the line number, just right click on the error message and there will be an option to take you right to the error.
Moose or Chuck
 


Re: Game Guru book, source error?

Postby Digby » Jul 25, 2001 @ 5:49pm

Here's a wild guess as to the cause of your problem:<br><br>Make sure that ddraw.h is included before that header file.<br><br>Go to Tools/Options/Directories and make sure that the DX include and library directories are the first items in the lists (ahead of the VC headers and libs).<br><br>There isn't a way to turn on line numbers in the Visual Studio editor (if that's what you're asking).<br><br>If you put the cursor on a line, the line number will show up in the status bar (bottom right).  You can also type ALT+E+G and that will allow you to enter a line number to jump to.  Or if you want to go to the next error/warning in the Build output window, press F4.<br>
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Re: Game Guru book, source error?

Postby RwGast » Jul 25, 2001 @ 6:04pm

Thanks guys im at work right now so i cant this stuff out but i never even did that Tools>Options>Directorys thing in the first place i didnt know you had to set up the path of the dx lib files. Is this most likely the reason for the problem.
http://www.angelfire.com/ego/esoteric if you like to play quake3 keep your eye on this site
User avatar
RwGast
pm Member
 
Posts: 1123
Joined: Jun 28, 2001 @ 7:36pm
Location: California, USA


Re: Game Guru book, source error?

Postby DeFrAgGeD » Jul 26, 2001 @ 2:08am

Yeah that should fix the problem... After working with old school borland and qbasic you get used to looking for paths in the settings somewhere but hey that was a long time ago
Computer Programmer/CEO Olds Software
DeFrAgGeD
pm Member
 
Posts: 68
Joined: Jul 14, 2001 @ 2:05am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron