Advertisement

Tricks of the Windows Game Programming Gurus code and DirectX8 problems...

Started by January 10, 2002 12:34 AM
11 comments, last by bluemace 22 years, 10 months ago
Short and simple. When I installed DX8 most of the samples that were on the CD stopped to function. Most of the time I can''t even compile the programs using the source code. I am beginning to think this book is really not good for learning DirectX from scratch cause I feel lost since I was using the book as a reference and now I can''t even use it as a reference to give my game functionality using a joystick. ~Robert
Um, Yeah, Tricks is now a really sucky book to learn DirectX from thanks to the fact that Microsoft totally switched up the way DirectX is structured after version 7.0 (the book uses DX6). Since DirectDraw is no longer in existence, that''s probably why the apps don''t compile, since Tricks basically covered DirectDraw for graphics. D''oh!

However it should be noted that Tricks isn''t just a DirectX book, Andre put in some really nice and detailed Win32, AI, Physics, Optomization, etc sections that definetly deserve a spot on your reference shelf.

Drew Sikora
Executive Producer
GameDev.net

Advertisement
I''ve got DX8 on my computer and the samples from Andre''s book still work.
yeah on second thought I guess DX would be useless if it weren''t backwards compatible right? I know it is, know that I think about it. But can the DX8 SDK compile DX6 code? Or does DX8 just run previous DX apps - like you say the apps work for you - did you compile them or just run their .exes?

Drew Sikora
Executive Producer
GameDev.net

quote: Original post by Gaiiden
But can the DX8 SDK compile DX6 code?


yes, thats the whole point of DX'' architecture.
all your doing is requesting an interface to a previous version which is what DX is designed for(i.e. COM).
evan when DX 22 is released it will still support older interfaces.

you say you installed DX8, but could you get the samples to *compile* with DX6 or 7?, i know a lot of people get linker problems with the samples which has nothing to do with what DX version your running.

-------------------------------------
"bingo-bango, sugar in the gas tank!"
Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did. So throw off the bowlines, Sail away from the safe harbour. Catch the trade winds in your sails. Explore. Dream. -Mark Twain
I had a problem when I updated to DX 8 and was using Andre''s code also. I was using MSVC++ 5.0 to compile. Then I downloaded some updates at the microsoft homepage and it worked fine. They total to about 90 mb for the whole update ( its in 9 parts ). If I find the link I''ll post it later.
Advertisement
I am using Visual C++ 6.0 and I have service pack 5 and most of the stuff in Chapter 9 doesn''t work when I run the executables and the game that the book builds up to in Chapter 14 doesn''t even work at all! The game switches to full screen mode, then you see the hourglass icon, then I get kicked back into Windows mode again. And yes, I can''t compile the code and I''m using the latest SDK which is DirectX 8.1. This situation is a bit odd to me since I never encountered it before.

~Robert
The reason I want this to compile is so I can try to understand how to get my prototype game to use my MS Sidewinder so I don''t have to use the keyboard. Since the code doesn''t work in Chapter 9, then I''m a bit worried about using it and I''m new to this site so I don''t know where to look for help regarding adding joypad & rumble functionality to a game.

~Robert

Because DX sucks!
Try "search" here. I am sure I''ve seen a few web pages on the subject with clear guides how to solve this problem.

Good luck

Mvh Mario..
Warm regardsMario..

This topic is closed to new replies.

Advertisement