我的一个工程里,还没有任何有关DX的代码
我把ddutil.cpp dxutil.cpp还有ddutil.h dxutil.h添加到了着个工程里后,就出现了如下错误:f:\dx9sdk\samples\c++\common\src\dxutil.cpp(1104) : fatal error C1010: unexpected end of file while looking for precompiled header directive
ddutil.cpp
f:\dx9sdk\samples\c++\common\src\ddutil.cpp(1032) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
我把ddutil.cpp dxutil.cpp还有ddutil.h dxutil.h添加到了着个工程里后,就出现了如下错误:f:\dx9sdk\samples\c++\common\src\dxutil.cpp(1104) : fatal error C1010: unexpected end of file while looking for precompiled header directive
ddutil.cpp
f:\dx9sdk\samples\c++\common\src\ddutil.cpp(1032) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
#include "stdafx.h"
语句就可以了,你试试看
->category(precompilerd headers)->选择not using precompilerd headers.
这样也行,不过编译非常慢。