Archived

This topic is now archived and is closed to further replies.

utwo007

DirectX problems with Bloodshed?

Recommended Posts

utwo007    122
Hey. I''m using the Dev-C++ IDE to compile my DirectX projects, as I read and learn DirectX from Andre LaMothe''s "Tricks...Gurus" book. Since I''m so new to this, it''s entirely possible that I''m doing something wrong. Whenever I try to compile a DirectDraw program of any kind, I get 31 errors. I figured I must have done something wrong, so I grabbed one of LaMothe''s own .cpp files from the DDraw chapter, pasted it, compiled it, and got the SAME 31 errors. If I can''t compile LaMothe''s code correctly, then I''m either doing it wrong, or the compiler Dev-C++ uses (cant remember which) is messed. Anyone have any ideas? I know that I was told to include DDRAW.LIB. I made sure that the path to the DX SDK LIB\ directory was in the compiler options, as well as the include\ directory. I also tried using the #include directive to include the .lib file explicitly, like this: #include <ddraw.lib> but that obviously didn''t work, and such cose wasn''t in LaMothe''s source either. Help!

Share this post


Link to post
Share on other sites
Null and Void    1088
Something to keep in mind: It''s virtually never the compilers fault. Yes, you have to link the library. There''s a catch though; the libraries that come with the SDK may not work (I don''t personally know). Try looking for DirectX libraries made for MinGW online.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post


Link to post
Share on other sites
Rehfeld    122
heres a link for what you need
http://www.bloodshed.net/dev/pkg/pkg_getting.html
and be sure to follow the readme that comes with the package it will give you step by step instructions on setting up a Direct X project and check out the bloadshed forum for help on getting Direct Input up and running in the version of the package I downloaded I had to alter one of the headers to get it to work, cant remember wich one at the moment mmsystems.h I think anyway if you goto the bloadshed forum look in the DirectX8 tutorial project thread I uploaded a handfull of zips sofar to a geocities acount the secound one I think is where I added Direct Input their is a file description on the page so it should be easy to fined you will have to download the rsrc.zip as well to get the source to compile, the rsrc.zip file contains two files for the project that I forgot to include in matrices, matricesV2, and matricesV3.zip files

Share this post


Link to post
Share on other sites