Modifying the Simp Engine & game:

Started by
2 comments, last by TrevorGdCh 22 years, 1 month ago
Hi everyone: Now that I''m further along in my programming career and understand code a little better ... I have a couple of ideas to begin modifying the demo game "A Time to Kill" in the book. I''m using VC++ 6.0 However, if I make even one small change to either the code, or even a comment, the project doesn''t compile -- it gives me an error "unable to open dinput8.lib" eventhough I''ve included the libraries in the project>settings>link box ... and the error persists eventhough I choose "undo" from the edit menu!!! Finally, if I move a copy of the original file into my working directory, the compiler comes back with another error, this time in InputSystem.h --- "unexpected class CKeyboard ... blah blah" Basically I have to go back to the original, untouched versions of all the code and open it using the supplied "game.dsw" for it to compile ... Has anyone ever encountered this kind of error? What''s the best way to begin building my new project if I want to incorporate the ideas in the book? I know this is just copy-pasting, but I need to start somewhere & I want to test my ideas!!! Any help or feedback is greatly appreciated!!! Sincerely
And when you''re done, go shoot yourself ...
Advertisement
quote:Original post by TrevorGdCh
However, if I make even one small change to either the code, or even a comment, the project doesn''t compile -- it gives me an error "unable to open dinput8.lib" eventhough I''ve included the libraries in the project>settings>link box ... and the error persists eventhough I choose "undo" from the edit menu!!!

can you describe that "one small change" better pls? maybe you can explain every step you make so that it will be easier to spot the problem..

it looks like you don''t give the correct path to dinput8.lib. try adding it to your project by using this way: project->add_to_project->files... that way you can point out the lib file location exactly. or you can use pragma directives. but i prefer the first one...

quote:Original post by TrevorGdCh
Finally, if I move a copy of the original file into my working directory, the compiler comes back with another error, this time in InputSystem.h --- "unexpected class CKeyboard ... blah blah"

it looks like you just don''t copy InputSystem.h to your working folder. or again a problem about paths.. check your tools->options->directories for adding path..

cheers..


-----------
my quote is under construction
-----------my quote is under construction

Thanks I''ll try it --

It doesn''t matter what I change -- for example, including a statemtent like "direction = -direction" to reverse it, or even simply changing the comment block, is sufficient to throw everything off.

I''ll check what''s going on with dinput8.lib -- I''m also tempted to build everything from scratch using the "starter code" only as necessary ...
And when you''re done, go shoot yourself ...
Check to be sure that you have the DX8 SDK installed, AND that the library and include directories for it appear first under Options->Tools->Directories.

This topic is closed to new replies.

Advertisement