I want to get all names colors from class System::Drawing::Color.
I searching in forums this and else in network but samples whose I find not work in Visual Studio C++ 2008. Problem is witch typeof -
if i use samples
Type colorType = typeof(System.Drawing.Color);
them i have problem witch typeof.
I writing:
1 2
System::Drawing::Color cl;
array<String^>^ type = System::Enum::GetNames(cl.GetType());
... You ARE using C++, right? I've never seen the 'using' pre-processor directive before, nor have I ever seen syntax as is being used when declaring your 'type' variable. I suggest you wait until someone who knows this stuff comes on.