shldisp.h不能为常数等错误.

        //virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Windows(__RPC__deref_out_opt IDispatch **ppid) = 0;//用windows要出错,我也不知道为什么
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Widows(__RPC__deref_out_opt IDispatch **ppid) = 0;

将之注释掉.把windows改成widows.就可以了.

posted @ 2020-10-12 21:36  zjh6  阅读(17)  评论(0)    收藏  举报  来源