Advertisement

DirectX Problems

Started by April 11, 2002 03:52 PM
7 comments, last by Wachar 22 years, 8 months ago
Can anyone tell me the exact steps to linking DirectX files? Like, "where to include the .lib files". Any help would be nice. Tricks of the Windows Game Programming Gurus is kinda faint... ---------------------- Always will be smarter than you, --=ME=-- ----------------------
Wachar's Eternity <-<-<-<-<- Me own site!
What IDE are you using? If it''s Visual C++, in your DirectX project, go to Project..Settings..Link and in the Object/Library modules box type (if you''re using DirectDraw, which I assume you are) ddraw.lib and dxguid.lib. That should do it. Also, don''t forget to include the DirectDraw header in your source file with #include <ddraw.h>.
Advertisement
I''m using MSVC++ 6.0 and using the code from the ''source'' folder of the included CD. I have included the files in the project -> settings. Also, I did C:/mssdk for a the linker directories. But, it still gives me an error:
d:\source\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd''
d:\source\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found

----------------------
Always will be smarter
than you,
--=ME=--
----------------------
Wachar's Eternity <-<-<-<-<- Me own site!
quote: Original post by Wachar
I''m using MSVC++ 6.0 and using the code from the ''source'' folder of the included CD. I have included the files in the project -> settings. Also, I did C:/mssdk for a the linker directories. But, it still gives me an error:
d:\source\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd''
d:\source\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found


----------------------
Always will be smarter
than you,
--=ME=--
----------------------


Well first off the lib directory lives in c:\mssdk\lib, the header files live in c:\mssdk\includes\

Make sure that your linking with ddraw.lib and dxguid.lib also.
What file am I supposed to put in the Include Files of the Project -> Options? I have C:/mssdk on.

----------------------
Always will be smarter
than you,
--=ME=--
----------------------
Wachar's Eternity <-<-<-<-<- Me own site!
I''m thinking there''s some problem with Lamoth''s source code on the CD.

----------------------
Always will be smarter
than you,
--=ME=--
----------------------
Wachar's Eternity <-<-<-<-<- Me own site!
Advertisement
You need to put the actual location (ie subdirectory) where the files are found, not just the parent directory (C:\mssdk). So put "C:\mssdk\lib" (I don''t remember what it is exactly) for the libraries, and "C:\mssdk\include" for the headers.
Thanks, Dark. That made it work. But, when I compiled it and came back to the compiler, it made something called an external dependancie called basetsd.h. What is that?

----------------------
Always will be smarter
than you,
--=ME=--
----------------------

[edited by - Wachar on April 11, 2002 11:28:30 PM]
Wachar's Eternity <-<-<-<-<- Me own site!
Anybody? What''s basetsd.h? (The external dependancy).

----------------------
Always will be smarter
than you,
--=ME=--
----------------------
Wachar's Eternity <-<-<-<-<- Me own site!

This topic is closed to new replies.

Advertisement