vc6.0配置directx9.0

 

  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
 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值