2012年8月16日 星期四

Windows Shell Extension 問題 (project form VC6 to VS2008)

最近在看windows shell programming
因為範例project是用vc6, 我的環境是用vs2008
轉換時有些地方需要修改
碰到的部分問題記錄在這篇

 1. Error PRJ0019 : A tool returned an error code from "Performing registration" 
以系統管理員身份執行vs2008再compile就成功了

 2. error C2259: 'ATL::CComObject' : cannot instantiate abstract class 
似乎是method的prototype有變更 
GetCommandString(UINT , UINT , UINT* , LPSTR , UINT) 
第一個參數要改成UINT_PTR


沒有留言: