PolyLine函数无法使用,提示error C3861: 'PolyLine': identifier not found 。
代码如下:
POINTS pts[2];
pts[0].x = 0;
pts[0].y = 0;
pts[1].x = 50;
pts[1].y = 100;
PolyLine(hdc, &pts, 2);
编译时候,提示error C3861: 'PolyLine': identifier not found 。
已经引用了windows.h 和项目属性附加了Coredll.lib库。
请问这是怎么回事?