External Errors with MSVC++ / DirectX7
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 |:^)
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.
How many Microsoft employees does it take to screw in a light bulb?
None, they just declare drakness as a new standard.
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''.
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 |:^)
BTW, what is that #pragma stuff? Never seen it, its unknown to me, please explain.
Help, I''''m a newbie |:^)
// 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>
//
// 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
messed up on the #include <d3d8.h>
should be #include <ddraw.h>
hehe
im too used to using d3d
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement