VOID Example_DrawRectangle4(HDC hdc)
{
Graphics graphics(hdc); // Create a Pen object.
Pen blackPen(Color::Black, 3); // Define the rectangle.
REAL x = 0.0f;
REAL y = 0.0f;
REAL width = 200.0f;
REAL height = 200.0f; // Draw the rectangle.
graphics.DrawRectangle(&blackPen, x, y, width, height);
}
这是一个msdn的范例,调试时系统提示链接出错,不知为何?
{
Graphics graphics(hdc); // Create a Pen object.
Pen blackPen(Color::Black, 3); // Define the rectangle.
REAL x = 0.0f;
REAL y = 0.0f;
REAL width = 200.0f;
REAL height = 200.0f; // Draw the rectangle.
graphics.DrawRectangle(&blackPen, x, y, width, height);
}
这是一个msdn的范例,调试时系统提示链接出错,不知为何?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货