Hi
I am not able to compile the example in GameDev http://www.gamedev.net/reference/articles/article757.asp

the erorr message I get is DD_Stuff.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw4

I did install DirectX 9.0 but still the same erorr is there :(

please help
Posted on 2004-03-22 09:28:13 by mistronr1
Long reason why:
You're probably using some butched import library from masm32... The later versions build import libraries from .inc files. This works okay for most simple stuff, like kernel32,user32, et cetera (the libraries from the PlatformSDK only has imports, no code/data), while some more 'advanced' libraries have both imports and code/data parts.

The DirectX libraries are an example of this - the IID_IDirectDraw4 is a data member in the library.

Short solution:
get some decent import libraries - like the ones from the PlatformSDK.

Or the DirectX SDK - even more recent libraries, plus samples and documentation etc.
Posted on 2004-03-22 09:55:24 by f0dder
Thanx F0dder

Do you have a link where I can get the recent lib set, I did search the web but no luck :(

peace
Posted on 2004-03-22 10:46:39 by mistronr1
Here you go....

Direct X update libaries... ect ect. Unfortanatly don't know if much progress has been made in this form since last i visited.
{had similar problem and had to code in VC++ with inline asm}

"http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp"
Posted on 2004-03-25 17:24:49 by Black iCE