// Assume HDC is obtained and valid
// Draw a line MoveToEx(hdc, x1, y1, NULL); LineTo(hdc, x2, y2); autocad virtual device gdi16.hdi
#include <windows.h>