Sign in to follow this  

Setting up VC++ 2010 for DirectX9

Recommended Posts

Hi GameDev community, first-time poster here. :D

Recently I started delving in the dark arts of DirectX 9 with the use of the official documentation. Although it's quite clear, I can't start a vcproj from scratch to work with the code from the tutorial samples.
What I do is start a new project, add an empty .cpp file and copy-paste the code from the tutorial files. Then I configure the IDE by opening Project -> *Projectname* Properties -> VC++ Directories and add the proper path to the Include Directories and Library Directories AND Project -> *Projectname* Properties -> Linker -> Additional Dependencies (d3d9.lib and d3dx9.lib).

For some demonic reasons, this only works with the code from the first two tutorials. Although some need the change in the Character Set from Multi-byte to Unicode, they still cause errors. For instance I get from the Matrices sample:

1>MATRICI.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "void __cdecl SetupMatrices(void)" (?SetupMatrices@@YAXXZ)

And just by configuring VC++ and copy pasting the code.

Any help is highly appreciated. :)

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