Original Post
Hello,
I have been struggling with this for too long now. I am trying to compile the first example in Andre LaMothe''s Tricks of the Windows Game Programming Gurus book ( the FreakOut game ). I am using MS Visual C++ 6 and create a new Win32 app project. I add the following files to the project: blackbox.cpp, blackbox.h, freakout.cpp, and ddraw.lib. When I compile I get the following compilation errors:
--------------------------------------------------------------
Compiling...
blackbox.cpp
d:\source\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd''
d:\source\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found
freakout.cpp
d:\source\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd''
d:\source\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
FreakOut.exe - 4 error(s), 0 warning(s)
---------------------------------------------------------------
I''m very confused as to why this is occuring. Any help would be greatly appreciated, if needed, I can e-mail you the source code.
Thanks in advance for any help.