一个简单的GDI问题,谢谢了
我用的Visual C++ 2005,是一个windows application Form,我做一个渐变的背景,但不知道为什么做color这块
pBrush->CenterColor=Color::Blue;
Color [] colors = {Color::FromArgb(255, 0, 0)}; //这里报错
pBrush->SurroundColors=colors;
g->FillEllipse(pBrush,250,100,200,100);
error C2143: syntax error : missing ';' before '['
error C3409: empty attribute block is not allowed
error C2146: syntax error : missing ';' before identifier 'colors'
error C2065: 'colors' : undeclared identifier
谢谢了,请问这里的颜色应该怎么写啊?