I got an error msg after compiling
I"m having these 3 errors after compiling a basic directdraw program..
Error1:
DD1 error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "int __cdecl Init(struct HINSTANCE__ *,int)" (?Init@@YAHPAUHINSTANCE__@@H@Z)
Error2:
DD1 error LNK2001: unresolved external symbol _IID_IDirectDraw7
Error3:
DD1 fatal error LNK1120: 2 unresolved externals
What does they mean?
I''m using the VC++.net.
Is that something wrong with my setting of the project?
Looks like you forgot to include the ddraw.lib file in your project. At least I _think_ that''s the name of the file for the direct draw functions, since it was a time since I used it. You also need to #include <ddraw.h> somewhere in your project.
- Patrik Willbo
The Lord says He can get me out of this mess, but He''s pretty sure you''re fucked.
- Stephen (Braveheart)
- Patrik Willbo
The Lord says He can get me out of this mess, but He''s pretty sure you''re fucked.
- Stephen (Braveheart)
You need to have ddraw.lib and dxguid.lib linked. Well, actually, if you are using INITGUID then you only need to link ddraw.lib
Qui fut tout, et qui ne fut rien
Invader''s Realm
Qui fut tout, et qui ne fut rien
Invader''s Realm
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement