现在的位置: 首页 > 综合 > 正文

vc6.0配置directx9.0

2018年02月11日 ⁄ 综合 ⁄ 共 1052字 ⁄ 字号 评论关闭

 

  1. In Visual C++ create a new Win32 Application.
    1. File > New
    2. From the Projects tab select Win32 Application
    3. Enter a name for your project such as “DX Project 1”
    4. Select a folder for the location of your source code files
    5. Click Next
    6. Select the empty project option.
    7. Click Finish
  2. Make sure that your project settings are correct.
    1. Project > Settings...
    2. On the Link tab, make sure that "d3d8.lib" is in the list of Object/Library Modules. If it isn’t simply type it in.
  3. Make sure that your search paths are correct.
    1. Tools > Options > Directories Tab
    2. In the "Show directories for" drop-down, select "include files".
    3. If it does not exist already, add the following path: <SDK INSTALL PATH>/include.
    4. Make sure that this path is at the top of the list by clicking on the up arrow button (if needed).
    5. In the "Show directories for" drop-down, select "library files".
    6. If it does not exist already, add the following path: <SDK INSTALL PATH>/lib.
    7. Make sure that this path is at the top of the list by clicking on the up arrow button (if needed).
  4. Add the source code.
    1. File > New
    2. From the Files tab, select C++ Source File
    3. Enter a filename such as “Main.cpp”
    4. Copy the code segment below, and then paste it into your new file.
  5. Build and Run the program.
    1. Press F7 to build your project
    2. Press F5 to run
 

抱歉!评论已关闭.