嗨,我刚刚将此代码复制到visual studio 2010中的Empty项目,以获取名为main.cpp的源文件。当我尝试编译它时,我收到此错误:
Error 1 error LNK2019: unresolved external symbol _DirectDrawCreate@12 referenced in function "bool __cdecl DirectDrawInit(struct HWND__ *)" (?DirectDrawInit@@YA_NPAUHWND__@@@Z) C:\Users\Ondra\Documents\Visual Studio 2010\Projects\Game\Game\main.obj Game
并出现此错误:
Error 2 error LNK1120: 1 unresolved externals C:\Users\Ondra\Documents\Visual Studio 2010\Projects\Game\Debug\Game.exe 1 1 Game
有什么问题? :(