DirectX 10 problem

Started by
3 comments, last by Sr_Guapo 17 years, 10 months ago
Hi! I get error LNK203: unresolved external symbol when I use the function CreateDeviceAndSwapChain. Of course I want to use the reference raster. Im useing Vista, and if I take away this command the code compiles, every other dx10 command works. Please if you have managed to compile and run on Vista using reference raster write to me :) /Alex
Advertisement
The function should be D3D10CreateDeviceAndSwapChain and you have to link with the D3D10.lib
About the linking:

I HAVE chosen the directory where that file is in
Tools->options->Project&Solutions->VC++Directories
under Executable files.

This doesnt seem to work so is there another way?
ok I got it,
#pragma comment(lib, "d3d10"), right?
Quote:Original post by alebo611
About the linking:

I HAVE chosen the directory where that file is in
Tools->options->Project&Solutions->VC++Directories
under Executable files.

This doesnt seem to work so is there another way?


put in in the library files list, not the executable list.
Sean Henley [C++ Tutor]Rensselaer Polytechnic Institute

This topic is closed to new replies.

Advertisement