|

楼主 |
发表于 2004-4-12 19:10:00
|
显示全部楼层
Re:用vc6编译directx sdk 9示例程序错误,请解答,谢谢!
basetsd.h加乐都不管用。
基本上所有例子都是这个错误:
--------------------Configuration: MFCFog - Win32 Debug--------------------
Compiling...
d3dapp.cpp
D:\Program Files\DXSDK\Samples\C++\common\src\d3dapp.cpp(832) : error C2065: 'ULongToHandle' : undeclared identifier
d3dsettings.cpp
D:\Program Files\DXSDK\Samples\C++\Common\src\d3dsettings.cpp(277) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned
int,long)'
None of the functions with this name in scope match the target type
D:\Program Files\DXSDK\Samples\C++\Common\src\d3dsettings.cpp(499) : error C2065: 'ULongToPtr' : undeclared identifier
D:\Program Files\DXSDK\Samples\C++\Common\src\d3dsettings.cpp(672) : error C2065: 'UlongToPtr' : undeclared identifier
Error executing cl.exe.
mfcfog.exe - 4 error(s), 0 warning(s)
DXSDK安装时没有选默认路径,是放在d:\program files\下,有问题吗?
|
|