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的范例,调试时系统提示链接出错,不知为何?