Archived

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

Amythius

External Errors with MSVC++ / DirectX7

Recommended Posts

Amythius    122
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 |:^)

Share this post


Link to post
Share on other sites
Julio    116
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
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''.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "ddraw.lib")

Share this post


Link to post
Share on other sites
Amythius    122
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 |:^)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
// 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>

//

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
oops
messed up on the #include <d3d8.h>
should be #include <ddraw.h>
hehe
im too used to using d3d

Share this post


Link to post
Share on other sites