DirextX7。0 SDK 在VC 6.0 环境中使用的注意事项

在VC 6.0环境中使用DirectX 7.0 SDK。首先安装了DirectX 7.0 SDK。然后在”Tools”菜单栏中的”Options”菜单项中包含头文件和库文件。然后编译DirectX 7.0 SDK中的一个例子JoystImm。出现了LPDIRECTINPUT7类型不能识别的问题,具体是:'LPDIRECTINPUT7' : missing storage-class or type specifiers。

     原来的头文件包含如下图:        

 DirextX7。0 SDK 在VC 6.0 环境中使用的注意事项

 

  改为:

 DirextX7。0 SDK 在VC 6.0 环境中使用的注意事项

 

     然后重新编译,但是还有两个编译错误

unresolved external symbol _DirectInputCreateEx@20和unresolved external symbol _IID_IDirectInput7A

 

  于是把库文件从下图:

 DirextX7。0 SDK 在VC 6.0 环境中使用的注意事项

 

改为:

 DirextX7。0 SDK 在VC 6.0 环境中使用的注意事项

 

   然后重新编译。编译运行通过。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-07-28
  • 2021-06-24
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2021-12-06
  • 2021-08-14
  • 2021-07-19
  • 2021-07-04
  • 2022-01-08
相关资源
相似解决方案