Jump to content

  • Log In with Google      Sign In   
  • Create Account


Juskelis

Member Since 26 May 2013
Offline Last Active Sep 06 2013 11:41 AM
-----

Topics I've Started

Learning Visual C++ 2012

25 August 2013 - 03:33 PM

So I'm a computer science major learning in C++, but my school doesn't teach us using Visual Studio. I know how to do a lot of the basics of programming, so instead I'm looking more for how to do advanced stuff with Visual Studio.

 

Namely how to deal with adding my own libraries to a project and getting them to work, or more generally anything involving the Project Properties window. Do you guys know anywhere that can teach me how to do that?


Setting up DXUT.lib

25 August 2013 - 01:11 PM

So, I've been reading Game Coding Complete 4th edition for a while, and I decided to take a crack at actually starting to code it for myself. I started by looking at the source code for the initialization sequence, found here.

 

Right now I'm just trying to set up some of the pragma comments. For now I'm going to ignore the bullet stuff and just focus on getting the framework down. At the moment I have this:

#pragma comment(lib, "shell32.lib")
#pragma comment(lib, "advapi32.lib")

#pragma comment(lib, "DXUT.lib")
#pragma comment(lib, "dxutopt.lib")

When I try to build this, I get an error saying that DXUT.lib can't be found. I looked around and I saw that I had to build it myself, so I built it and got an object file library and a bunch of other things, which I tried moving to a /lib folder in the project directory. Still didn't work.

 

The lib folder path is Documents//Visual Studio 2012//Projects//[ProjectName]//lib

I also tried putting the lib folder in //[ProjectName]//[ProjectName], but that didn't work either.

 

I have an inherited library path of $(VCInstallDir)lib, am I putting it in the right place? If so, do I need to do something special with DXUT?


PARTNERS