External Errors with MSVC++ / DirectX7

Started by
6 comments, last by Amythius 22 years, 8 months ago
Aww jeese. I was compiling my program and got an error: LNK2001: unresolved external symbol _DirectDrawCreate@12 I don''t know if I''m using the wrong versions or what. Someone teach me the dillio plz. |:^) Help, I''''m a newbie |:^)
"It's easy to make things hard, but it's hard to make things easy."
Advertisement
is that the only error you get? if so, then you''re probably linking the corrent libs, just declaring something wrong.



How many Microsoft employees does it take to screw in a light bulb?
None, they just declare drakness as a new standard.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
is u''re paths set correctly? Make sure it points to the directory where the directx is located. And also, did u include in u''re project ''ddraw.lib''.
#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "ddraw.lib")
What is that pragma stuff? I''ve never seen it before, new syntax? Or diff language? I dont think I used ddraw.lib Although I did use the header file. I will try it tomorrow morning, bed time, I''m a morning person |:^)
BTW, what is that #pragma stuff? Never seen it, its unknown to me, please explain.

Help, I''''m a newbie |:^)
"It's easy to make things hard, but it's hard to make things easy."
// it''s c++
// it tells the compiler to link with a library

// example:

#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "ddraw.lib")
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <d3d8.h>

//
oops
messed up on the #include <d3d8.h>
should be #include <ddraw.h>
hehe
im too used to using d3d
Hey, thanks a lot, it is fixed now. Back to coding.
"It's easy to make things hard, but it's hard to make things easy."

This topic is closed to new replies.

Advertisement