#### Archived

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

# DX MSVC++ Question

This topic is 6270 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello... recently i''ve had some free time at work, so i''m trying to sneak in some work on a couple projects. i did this once before, and it worked fine, but now i''m getting problems... Here''s the deal - i create a new project with all the header and source files for my project. Then, i go to Project->Settings and set up the link tab to add the libraries ddraw.lib and dxguid.lib, but MSVC++ still won''t compile my programs ''cause it doesn''t have a clue as to what LPDIRECTDRAW7 is, etc. Anyone have any suggestions? i know i''m missing something small... "You call him Dr. Grip, doll!"

##### Share on other sites
Have you told MSVC where your ddraw h-files are?

##### Share on other sites
Well, i did go to Tools->Options->Directories tabs and added the ...\MSSDK\Include and ...\MSSDK\Lib directories. Is that what you mean?

"You call him Dr. Grip, doll!"

##### Share on other sites
Yep. Remember to add the directories to right places (Include directories and library directories)

##### Share on other sites
hmm... done that... any other ideas appreciated...

"You call him Dr. Grip, doll!"

Edited by - the_grip on July 25, 2001 10:31:25 AM

##### Share on other sites
Make sure the DX sdk directories are b4 the visual studio directories . VS6 comes with dx3 or 5 headers that is why it doesnt know the meaning of ...................

##### Share on other sites
Now this is a very stupid question but as I can''t find any other problem - do you have the ddraw.h-file included in the source code in all source files?

##### Share on other sites
Hmm, that seems to be it. However, now i get a:

...error LNK2001: unresolved external symbol _DirectDrawCreateEx@16...error LNK2001: unresolved external symbol _IID_IDirectDraw7

i've dealt with this stuff before... i just can't remember how i fixed it.

NOTE: This was in response to moving the include and lib directories to the top of the list. i did include ddraw.h, but that's not a stupid question (i'm fallable like everyone else :D)

Edited by - the_grip on July 25, 2001 10:42:29 AM

##### Share on other sites
Hmm.. it reports same errors for me if I take out the ddraw.lib and dxguid.lib.. are you sure you are using the same build configuration to build where you included the libraries? (ie. Win32 Debug / Win32 Release)

##### Share on other sites
Doh! Figured it out... i put the \lib directory in the include portion instead of the Library Files portion.

Thanks everyone for the help! i appreciate it!

1. 1
2. 2
3. 3
Rutin
18
4. 4
5. 5
JoeJ
14

• 14
• 10
• 23
• 9
• 32
• ### Forum Statistics

• Total Topics
632631
• Total Posts
3007532
• ### Who's Online (See full list)

There are no registered users currently online

×