Advertisement

Please Help

Started by December 01, 2001 10:06 PM
14 comments, last by Sair 22 years, 11 months ago
Silly newbies, libraries are for API programmers

  #pragma comment(lib, "ddraw.lib")  


Alternatively, you can go to Project->Settings->Link and add ddraw.lib to the library modules list.

In order for either of those to work, you need to add a path to the DirectX lib directory in Tools->Options->Directories->Library Files
(for instance, mine points to "C:\Program Files\Microsoft Visual Studio\VC98\Dx8\Lib")

You need a corresponding entry in Tools->Options->Directories->Include Files (again mines: "C:\Program Files\Microsoft Visual Studio\VC98\Dx8\Include")

If you have both the Dx7 and the Dx8 SDKs installed, make sure the Dx8 entries in the Include and Library list are _above the Dx7 ones.

Magmai Kai Holmlor
- Not For Rent

Also, instead of defining INITGUID you can use the compiled library:

  #pragma comment (lib, "dxguid.lib")  


Edited by - Magmai Kai Holmlor on December 1, 2001 11:56:28 PM
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
quote: Original post by Galileao
Oluseyi is a freakin Genus.

That''s a bit of an overstatement.

This is the reason why I always prefer to read official documentation (another understatement - I hate tutorials); very few tutorials mention things like this in sufficient detail.
Advertisement
Yeah, but in this case I don''t think the official documentation mentions it at all...

Magmai Kai Holmlor
- Not For Rent
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Actually, I did find the #define INITGUID/dxguid.lib tip in the DX8 docs. I don''t know about versions prior to that.

There''s tons in those docs. Finding them is the hard part.
I can''t help lookin back and wandering why I didn''t find this on my own. I''ve got 2 books out, and have been lookin through the SDK help files and a bunch of tutorials. Seeing how its needed to work....I''d imagine some one would bother to mention it.
Thanks again for help guys.
We already Figured that out Magmai Kai Holmlor =P. Except Galileao's Problem. Thanks to all for the help.

Peace guys
Cya Around,
Sair

Edited by - Sair on December 1, 2001 12:11:44 AM

This topic is closed to new replies.

Advertisement