🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Help with Tricks :(
Hey, I get this error when I try to link the dx intializing demo (chap 6):
main.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
Debug/wnd.exe : fatal error LNK1120: 1 unresolved externals
(it doesn''t like this code:
if (FAILED(lpdd->QueryInterface(IID_IDirectDraw7,
(LPVOID *)&lpdd7)))
{
// error
return(0);
} // end if
)
Help would be appreciate.
Are you linking the DirectDraw libraries? What about dxguid.lib?
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
actually he did, its just in the chapter that everybody skips..
setting up the ide
-eldee
;another space monkey;
setting up the ide
-eldee
;another space monkey;
I had the SAME problem lol If you ever have another error, try putting #define INITGUID or something weird like that at the top of your code I''m sure someone will correct me (that doesn''t look right)
Actually Lamothe uses the #define INIT_GUID instead of including dxguid.lib into the project. the #define INIT_GUID macro causes alot of problems when you divide your program up into seperate files, so I prefer to just link to the dxguid.lib . It is alot cleaner. Also keep in mind that dxguid.lib holds the Globaly Unique Identifiers for all of directx. So no matter what direct x component you use (direct draw, direct input, direct sound, direct play, direct show, direct 3d) you''ll need to include dxguid.lib into your project (just once).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement