屏幕上的DirectX 2D图像

时间:2014-12-08 18:05:35

标签: c++ directx

http://www.gamedev.net/page/resources/_/technical/directx-and-xna/directdraw-programming-tutorial-r608

嗨,我刚刚将此代码复制到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

有什么问题? :(

0 个答案:

没有答案