ender012345

Members
  • Content count

    9
  • Joined

  • Last visited

Community Reputation

122 Neutral

About ender012345

  • Rank
    Newbie
  1. Found the file. It works now that I changed it under directories from ../include to ../include/atl
  2. Ok, I read that the express edition comes with no atlmfc file. I downloaded and installed Microsoft ® Windows Server® 2003 R2 Platform SDK, however I am still getting the exact same error. I've added the include and lib files under directories just as I had to do with directx. What am I not doing?
  3. ok, I got the express version of visual c++ and everything is working fine even when I use the d3d9.h header file, but I run into a problem as soon as I try a program that uses d3dx9.h. Do I need to do something to link the directx libraries to visual studio? If so, I don't understand why a program with d3d9.h works... Specifically, I get this error. ------ Build started: Project: kfdldkd, Configuration: Release Win32 ------ Compiling... main.cpp .\main.cpp(5) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory Build log was saved at "file://c:\Documents and Settings\Daniel\My Documents\Visual Studio 2008\Projects\kfdldkd\kfdldkd\Release\BuildLog.htm" kfdldkd - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ok. found an answer in another topic by the member vODKA. however, I now just get a slightly different error. the forum said to: ------------------------------------------------------------------------------ Firstly, you have to download it from the microsoft website (I think it's a couple hundred megabytes). Then you unpack it - I suggest a simple-to-reach directly like C:\DXSDK\. Then, you need to go under Tools->Options->Projects and Solutions->VC++ Directories. Under the selection box "Show Directories For", select "Library Files" and add the directory "C:/DXSDK/Lib"; then the same for "Include Files" and "C:/DXSDK/Include". Then, when you make a project, select Project->Properties->Linker->Input, and under Additional Dependencies, enter these items separated by a space: "d3d9.lib d3dx9.lib"; if your reference material calls for others, add them as well. You could alternatively do this right in your code with: #pragma comment(lib, "d3d9.lib") #pragma comment(lib, "d3dx9.lib") Then, in your project, simply #include the DirectX headers: #include <d3dx9.h> // this automatically includes d3d9.h Then you're all set to use DirectX. ------------------------------------------------------------------------------ I've done all of this, and now, when I try to run my program, it gives this error... ------ Build started: Project: kfdldkd, Configuration: Debug Win32 ------ Linking... LINK : fatal error LNK1104: cannot open file 'd3dx9.lib' Build log was saved at "file://c:\Documents and Settings\Daniel\My Documents\Visual Studio 2008\Projects\kfdldkd\kfdldkd\Debug\BuildLog.htm" kfdldkd - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Why can't it open it? This error happens with any of the sample programs that come with directx, using d3dx9.h. [Edited by - ender012345 on January 20, 2008 1:25:33 PM]
  4. I'm not sure where to find visual studio, or how much it costs. I'm not totally sure how to link the library files. Right now, I've gone into Tools-> Compiler Options-> Directories-> Libraries and added the \lib folder from where I unzipped the sdk. I've done the same with the \include folder under the include tab. So, now I've searched and found visual C++ express edition, and I am currently downloading it. I think the express edition is just ONLY what you choose to download or something, but I thought you had to BUY visual studio? [Edited by - ender012345 on January 20, 2008 8:06:09 AM]