#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