Direct Draw problem [Archive] - C Board

PDA

View Full Version : Direct Draw problem


morbuz
10-08-2001, 08:48 AM
I'm reading "Tricks of the windows gameprogramming gurus" by André Lamothe. I have begun on the first chapter about Direct Draw.
When I try to build the first DDraw example i get this error:

WinMain.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw4

I have installed the Directx SDK and I have set the search paths in the Compiler options to search the SDK lib and innclude directories.

I really hope anyone can help...:(

morbuz
10-08-2001, 08:49 AM
Here is the .cpp file by the way...

oskilian
10-08-2001, 11:53 AM
you are not linking DirectX, and if you are, you may be doing it with an older (or maybe newer) version.

check your linker and directory settings

By the way: why did you buy a DirectX 4 book, you should have bought a DX7 or DX8 book, or maybe wait till DX9 comes out.

Oskilian

Xterria
10-08-2001, 12:11 PM
ah yes, that one chapter called "First Contact: DirectDraw" right? anyway, just include the correct LIBs, it should tell you how in the first chapter in the book.

Tazar
10-08-2001, 04:52 PM
Just include ddraw.lib

Tazar The Demon

morbuz
10-08-2001, 06:14 PM
Found out I had to include DXGUID.LIB:rolleyes: