Graphics 绘图应用程序-智能感知错误
因此,我正在制作一个绘图应用程序,最后一个错误是intellisense。这就是错误: IntelliSense: no instance of overloaded function "System::Drawing::Graphics::DrawLine" matches the argument list argument types are: (System::Drawing::SolidBrush, System::Drawing::Point, System::Drawing::Point) object type is: System::Drawing::GraphicsGraphics 绘图应用程序-智能感知错误,graphics,c++-cli,intellisense,Graphics,C++ Cli,Intellisense,因此,我正在制作一个绘图应用程序,最后一个错误是intellisense。这就是错误: IntelliSense: no instance of overloaded function "System::Drawing::Graphics::DrawLine" matches the argument list argument types are: (System::Drawing::SolidBrush, System::Drawing::Point, System:
这不是标准C++。它是C++管理的。我将标记更改为
c++-cli
您在该行中遇到IntelliSense错误。。。当你编译的时候,你在那一行有编译错误吗?大卫,是的。错误来自我在这里复制的代码的某一行。你用钢笔画一条线,而不是画笔。而是通过%Pen(colorSel)
。
g->DrawLine(SolidBrush(colorSel), oldPosition, e->Location);