ID:35217
 
Yes, I think DirectX has something personal against me. Seriously. I got some book , "Beggining Game Programming", a C++ book that "teaches" you how to do crud with DirectX.

Nope. I compile the code written, and it loves to scream at me most of the time. However, if I download the files from the CD and compile, it runs fine. But, if I copy the source from the CD to my project, it yells at me.

Oh, and the book is utter crap. The dude who wrote it has so many indentation mistakes, and in Chapter 9 he closes a for loop BEFORE putting the if() statements within the for loop.

I swear, it's like I have to sacrifice a virgin and 3 goats to get DirectX to run.
Anybody else ever have this problem?
Get another book. Nothing is wrong with direct X, you probably just have crappy/outdated samples or configured it wrong before rendering.

It also won't work if you're using a feature not supported by your GPU's software; i.e. pixel shading.
Are you just copying the source? Chances are that the samples on the disc have library and include settings that you aren't setting up right in your projects.
Perhaps you should post what it is "screaming" at you. Maybe you aren't as "noob" as I was, or perhaps still am, but I'm thinking that you aren't including the libraries you need to with your IDE (or just compiler if that's all you use. MinGW ftw!)
CaptFalcon33035 wrote:
Perhaps you should post what it is "screaming" at you. Maybe you aren't as "noob" as I was, or perhaps still am, but I'm thinking that you aren't including the libraries you need to with your IDE (or just compiler if that's all you use. MinGW ftw!)

It just screams and complains and makes up crap so it won't compile, even though everything is the same as what is on the CD, from libraries included and linked to header files and such.

You can't take the samples straight off the CD and expect them to work. You need to read the chapters and work on them yourself so you understand what isn't working on the CD.
Kunark wrote:
You can't take the samples straight off the CD and expect them to work. You need to read the chapters and work on them yourself so you understand what isn't working on the CD.

I do. Geeze, how many times do I need to say it? I read the chapters, I do what it says, it doesn't work, whether I do it or if I copy it from the CD.

Jeebus.

Dead_Demon wrote:
Kunark wrote:
You can't take the samples straight off the CD and expect them to work. You need to read the chapters and work on them yourself so you understand what isn't working on the CD.

I do. Geeze, how many times do I need to say it? I read the chapters, I do what it says, it doesn't work, whether I do it or if I copy it from the CD.

Jeebus.
Y DONT U ALL SHUT UP lol im bored