Archived

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

Guest Anonymous Poster

Another c++ question

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Do also make sure there is no old version of the DirectX SDK somewhere in the path of the compiler, because then it may use the old one instead of the new one.

Share this post


Link to post
Share on other sites
When i first got to work with DX7, i found out that i had to set the DX7 header and lib directories on the first row at the direction-options menu. Later on, i also found this must-do in a DOC about DX7

------------------
Electron

"Who need more than 64kb of RAM?" -Bill gates -89


Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I linked in the ddraw.lib file from c:\mssdk\lib\borland directory, (i'm using borland c++ 5.02) but i still get an error:
Error: Error: Unresolved external '_IID_IDirectDraw7' referenced from C:\BC5\LOGAN\DIRECT.OBJ

i'm including the ddraw.h with the following line:
#include

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
seems that last post got cut of oddly... anyway the line is
#include

is there something wrong with this?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
oh, it's cuz of the html hehe
well for now pretend that ( is a less than sign and ) is a greater than sign
#include (c:\mssdk\include\ddraw.h)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
since my last question here was quickly answered, i thought i'd try again =) this time i'm trying to make some DirectDraw code but when i try to compile i get the following errors:
Error: Error: Unresolved external '_IID_IDirectDraw7' referenced from C:\BC5\LOGAN\DIRECT.OBJ
Error: Error: Unresolved external 'DirectDrawCreateEx' referenced from C:\BC5\LOGAN\DIRECT.OBJ

i have included the ddraw.h file found in the sdk... i tried compiling some example DirectDraw code and got the same errors. what do i do? thanks

Share this post


Link to post
Share on other sites
Are you using the Borland librarys supplied with the DirectX SDK or the libs in the SDK's Lib directory.
Borland and Microsoft use different formats for *.lib files and all of the *.lib files in the SDK \Lib directory use the Microsoft format. You have to use the Borland versions with BC++5.02. The Borland versions are in the SDK directory \Lib\Borland.

If it is feasable for you, you might want to consider switching to Visual C++ rather than use BC++. BC++ is pretty much a dead product and Borland is not providing any support or updates for it any more. Inprise (AKA Borland) wants you to move to C++ Builder.

Share this post


Link to post
Share on other sites