Sign in to follow this  
jagguy

directX7

Recommended Posts

It is quite simple. Link libary dxguid.lib and ddraw.lib and include ddraw.h :)
Example:

#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "ddraw.lib")

#include <ddraw.h>
...


I hope I helped.

Share this post


Link to post
Share on other sites
can anyone point me in the right direction for a tutorial on directdraw with c++ (vc6++ is better)

I looked on the internet and it isnt easy to find just a simple set up explained.
there are plenty on with VB for directX

Share this post


Link to post
Share on other sites
i just found some good tutorials here.

if the paths in vc6++ are set to include directX SDK (includes, libs) then why do you need to include these files (as on tutorial given here> and manually link in librarires like ddraw.lib into your project

#include <dxutil.h>
#include <ddutil.h>

Share this post


Link to post
Share on other sites
Quote:
Original post by jagguy
i just found some good tutorials here.

if the paths in vc6++ are set to include directX SDK (includes, libs) then why do you need to include these files (as on tutorial given here> and manually link in librarires like ddraw.lib into your project

#include <dxutil.h>
#include <ddutil.h>

The paths just tell the compiler where to search for the things you give it. You would NOT want it to automatically include/link everything in your search path.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this