代码:
CreatePen(PS_SOLID, 2, RGB(0,0,0)));
调试信息:
1>./CENeoMapWin.cpp(2112) : error C2668: 'CreatePen' : ambiguous call to overloaded function
1> C:/Program Files/Microsoft Visual Studio 8/SmartDevices/SDK/PocketPC2003/include/wingdi.h(561): could be 'HPEN CreatePen(int,int,COLORREF)'
1> C:/Program Files/Microsoft Visual Studio 8/VC/ce/atlmfc/include/atlosapice.h(750): or 'HPEN ATL::CreatePen(int,int,COLORREF)'
1> while trying to match the argument list '(int, int, COLORREF)'
应该修订为:
::CreatePen(PS_SOLID, 2, RGB(0,0,0)));