我想開始使用WIC(Windows映像組件)資源管理器。Visual Studio 2015 Community Edition中的WIC Explorer
我已經下載了WIC Explorer Solution.
我已經下載Windows Template Library version 9.0這是一個要求,並從「包含」目錄中的文件複製到WIC Explorer解決方案的「wtl90」目錄的指示。
我正在使用Visual Studio 2015社區版。我構建了WIC Explorer解決方案,但出現了錯誤,不在WIC Explorer項目中,而在Windows模板庫文件中。
我查看了Windows模板庫Read Me #Support for Visual C++ Express,並且在使用Visual C++ Express時需要ATL版本8,因爲它顯示Express Edition沒有附帶ATL,所以我認爲它在2015年社區版。
Read Me說ATL在Windows Driver Kit Version 7.1.0中可用,所以我安裝了這個程序並按照指令運行AppWiz \ setup.js,但是它給了我一個錯誤,指出它找不到安裝的Visual Studio版本。
如何使用Visual Studio 2015 Community Edition設置ATL,以便我可以正確構建WIC Explorer解決方案?
更新: 顯然,如果在安裝過程中選擇ATL作爲選件,ATL將隨Visual Studio 2015 Community Edition一起安裝。我猜測它與MFC一起安裝,如果選擇該選項。雖然很明顯,我仍然需要爲WIC Explorer做一些設置,因爲包含的WTL文件似乎並不知道ATL。
我想知道它可以修改AppWiz \ setup.js文件以包含Visual Studio 2015社區版的路徑。雖然我不知道新的路線是什麼。
var nVersions = 12;
var astrRegKeyVer = new Array();
astrRegKeyVer[0] = "Microsoft\\VisualStudio\\7.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[1] = "Microsoft\\VisualStudio\\7.1\\Setup\\VC\\ProductDir";
astrRegKeyVer[2] = "Microsoft\\VisualStudio\\8.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[3] = "Microsoft\\VisualStudio\\9.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[4] = "Microsoft\\VisualStudio\\10.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[5] = "Microsoft\\VisualStudio\\11.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[6] = "Microsoft\\VisualStudio\\12.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[7] = "Microsoft\\VCExpress\\8.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[8] = "Microsoft\\VCExpress\\9.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[9] = "Microsoft\\VCExpress\\10.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[10] = "Microsoft\\VCExpress\\11.0\\Setup\\VC\\ProductDir";
astrRegKeyVer[11] = "Microsoft\\VCExpress\\12.0\\Setup\\VC\\ProductDir";
var astrFolder = new Array();
astrFolder[0] = "vcprojects";
astrFolder[1] = "vcprojects";
astrFolder[2] = "vcprojects";
astrFolder[3] = "vcprojects";
astrFolder[4] = "vcprojects";
astrFolder[5] = "vcprojects";
astrFolder[6] = "vcprojects";
astrFolder[7] = "Express\\vcprojects";
astrFolder[8] = "Express\\vcprojects";
astrFolder[9] = "Express\\vcprojects";
astrFolder[10] = "vcprojects_WDExpress";
astrFolder[11] = "vcprojects_WDExpress";
var astrVersions = new Array();
astrVersions[0] = "Visual Studio 2002 (7.0)";
astrVersions[1] = "Visual Studio 2003 (7.1)";
astrVersions[2] = "Visual Studio 2005 (8.0)";
astrVersions[3] = "Visual Studio 2008 (9.0)";
astrVersions[4] = "Visual Studio 2010 (10.0)";
astrVersions[5] = "Visual Studio 2012 (11.0)";
astrVersions[6] = "Visual Studio 2013 (12.0)";
astrVersions[7] = "Visual Studio 2005 Express (8.0)";
astrVersions[8] = "Visual Studio 2008 Express (9.0)";
astrVersions[9] = "Visual Studio 2010 Express (10.0)";
astrVersions[10] = "Visual Studio 2012 Express (11.0)";
astrVersions[11] = "Visual Studio 2013 Express (12.0)";
var abExpress = new Array();
abExpress[0] = false;
abExpress[1] = false;
abExpress[2] = false;
abExpress[3] = false;
abExpress[4] = false;
abExpress[5] = false;
abExpress[6] = false;
abExpress[7] = true;
abExpress[8] = true;
abExpress[9] = true;
abExpress[10] = true;
abExpress[11] = true;
var astrWizVer = new Array();
astrWizVer[0] = "7.0";
astrWizVer[1] = "7.1";
astrWizVer[2] = "8.0";
astrWizVer[3] = "9.0";
astrWizVer[4] = "10.0";
astrWizVer[5] = "11.0";
astrWizVer[6] = "12.0";
astrWizVer[7] = "8.0";
astrWizVer[8] = "9.0";
astrWizVer[9] = "10.0";
astrWizVer[10] = "11.0";
astrWizVer[11] = "12.0";