Archived

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

Obfuse

DirectX Help

Recommended Posts

I cannot get DirectX to work, I have the SDK (for directx 7) and Visual C++ 6. I have found numerous tutorials on how to set up DirectX and all they get me is this: "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\MyProjects\Test\Test.cpp(13) : error C2146: syntax error : missing '';'' before identifier ''lpDD''" and another one about missing type for LPDIRECTDRAW7. I have included ddraw.h, added the library files (dxguid.lib and ddraw.lib) and set the directories to the right ones, and yes I installed the SDK right because I have done it three times and it does the exact same thing every time. I can''t get the samples to work, I''ve tried just setting up a simple program from the tutorials, and this is getting very annoying, can anyone help? thanks. (and don''t even try to tell me to get a book, I''m not spending $20 on something I can''t even get to compile, once I get it working so it will at least compile something I might buy one) -=Obfuse=-

Share this post


Link to post
Share on other sites
Um...read above..it does that It complains about the first direct draw crap in the source. And I did add the includes path... just like everyone tells me to 50000 times, think im just going to f*** DirectX and get OpenGL because this is too much of a pain in the butt.


-=Obfuse=-

Edited by - Obfuse on November 2, 2000 6:20:57 PM

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
So how exactly did you add the include path, and how are you including ddraw.h. I''ve never seen a problem with this

Share this post


Link to post
Share on other sites
Make sure the include and library paths are at the top of the list. I guess you''re using Visual C++, if so, then MSVC comes with DirectX 3 I think and if those include paths are above the DirectX 7 ones, it''s gonna use the DX3 version of ddraw.h. Hope this helps.



"We are the music makers, and we are the dreamers of the dreams."
- Willy Wonka

Share this post


Link to post
Share on other sites
quote:
Original post by Julio

are ayou linking the libs? you have to do that in OpenGL too.

JoeMont001@aol.com www.polarisoft.n3.net


oh for god''s sake, he clearly says in the original post that he HAS! people like you make the world a more irritating place to live in ( only joking)

erm but i think BitBlt is probably right, that sort of thing tends to screw up MSVC because microsoft put the directx 3.0 sdk in without really telling you... and they don''t really tell you that the order of the include paths does in fact make a difference... in FACT, microsoft refuses to tell you absolutely anything of any importance or use, but instead rants on about Serialization for about 10000 pages in MSDN which is nothing more than just writing and reading to an i/o stream. phew, sorry i had to get that out of my system

yeah, if what BitBlt suggested doesn''t work, then you really would need to tell us a bit more about how your system''s set up because i dunno about other people but i can''t tell what''s wrong with your setup from what you''ve told us...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Also make sure your compiler is looking for the right Direct X lib files (Your Direct X stuff should be above all the others).

Share this post


Link to post
Share on other sites
quote:
Original post by Obfuse

I cannot get DirectX to work, I have the SDK (for directx 7) and Visual C++ 6. I have found numerous tutorials on how to set up DirectX and all they get me is this: "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\MyProjects\Test\Test.cpp(13) : error C2146: syntax error : missing '';'' before identifier ''lpDD''" and another one about missing type for LPDIRECTDRAW7.


What you have said here tells me that is as simple as a typo in your code. Could you post the relevant section of Test.cpp here?



Steve 'Sly' Williams
Tools Developer
Krome Studios

Share this post


Link to post
Share on other sites