[id(5), helpstring("method DrawEdges")] HRESULT DrawEdges(CDC* pDC, int fmode, int ichara);编译后出现这个error MIDL2025 : syntax error : expecting a type specification near "CDC"error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation 不知道什么原因,请指点,谢谢
[id(5), helpstring("method DrawEdges")] HRESULT DrawEdges(CDC* pDC, int fmode, int ichara);编译后出现这个error MIDL2025 : syntax error : expecting a type specification near "CDC"error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation 不知道什么原因,请指点,谢谢
HRESULT DrawEdges(long hDC, int fmode, int ichara);实现DrawEdges的时候可以
CDC* pDC = CDC::FromHDC(hDC);
用pDC就可以了