点类未知 [英] Point class unkown
问题描述
嗯,我在长时间休息了Java之后最近又开始学习C ++.但是,我开始做一些想画点东西的程序,然后尝试使用DrawPolygon函数.但是,这需要一些要点,并且我的编译器总是以某种方式告诉我这是一个未声明的标识符.我觉得这是一个标准结构.用谷歌搜索后,它实际上在MSDN中,对我不起作用.设置VC 2010时我忘了包含某些内容还是忘了做?
谢谢大家(和gall徒)的所有帮助!
Well, I''ve recently took up C++ again after a long break to Java. But, I started to do some programming wanting to draw some stuff and I tried to use the DrawPolygon function. But, this requires some Points and somehow my compiler keeps telling me that it''s an undeclared identifier. I was under the impression that this was a standard struct. Having googled this, it is in fact in MSDN and it doesn''t work with me. Have I forgot to include something or is it something I forgot to do when setting up VC 2010?
Thanks for all the help in advance guys (and galls)!
推荐答案
用于绘制多边形的Windows 函数是 ^ ].
您可能正在谈论类的方法.
(您是否正在使用 managed C ++/CLI ?)
:)
The Windows function for drawing polygons is Polygon[^].
You are probably talking about a method of a class.
(Are you using manged C++/CLI?)
:)
嗯,谢谢!我仍然希望我的功能能正常工作(我会检查;))但是为了确定我会用你的!好吧,经过很多摆弄之后,我想我终于找到了使用POINT结构的方法!感谢您的帮助.
Ah, thanks! I still hope my function works (I''ll check ;) ) But I''ll use yours just to be sure! Well, after a lot of fiddling around, I think I''ve finally found my way to use the POINT-structure! Thanks for the help.
这篇关于点类未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!