-
Direct Draw problem
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...:(
-
Here is the .cpp file by the way...
-
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
-
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.
-
Just include ddraw.lib
Tazar The Demon
-
Problem solved
Found out I had to include DXGUID.LIB:rolleyes: