DuiLib開源界面庫。下載DuiLib,https://github.com/duilib/duilib/,發現已經使用VS2013編譯了。若是須要在VS2012使用,可以使用2種方法。git
找一編輯器,如Notepad++。把 ToolsVersion=「12.0」,替換成 ToolsVersion=「4.0」
github
修改項目全部的 Plamtform Toolset
windows
1>Control\UIGifAnim.cpp(324): error C2065: ‘hFile’ : undeclared identifier
解決:
HANDLE hFile = ::CreateFile(pstrGifPath, GENERIC_READ, 前空一行
編譯成功!
編輯器
選擇對應目錄,並選擇配置
ide
編譯ui