Archived

This topic is now archived and is closed to further replies.

MajorShredd

VC++.NET error

Recommended Posts

I''m using DirectX 8 with Visual C++ .NET. Nothing seems to be wrong except with a call to QueryInterface(). When I compile my code, I get a linker error that says it cannot find the IID_IDirectDraw7 interface ID. I know that it is typed correctly and I''m pretty sure that the DX libraries are being linked. I believe the linker error is LNK2001, and it''s followed by another error that tells me the number of "unresolved externals". If anyone has any insight on this, please share. Many thanks in advance, ~ MajorShredd ~

Share this post


Link to post
Share on other sites
Put
#pragma comment(lib, "ddraw.lib")

at the top of the file

you *might* need:

#pragma comment(lib, "d3d8.lib")
#pragma comment(lib, "d3dx8.lib")

also

[edited by - Mulligan on October 19, 2002 4:12:20 PM]

Share this post


Link to post
Share on other sites