Missing UITypeEditors?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I'm trying to use the ImageEditor attribute as explained in http://msdn.microsoft.com/library/d...fsystemdrawingdesignimageeditorclasstopic.asp and http://www.thecodeproject.com/cs/miscctrl/extendedlistviews.as


EditorAttribute(__typeof(System::Drawing::Design::ImageEditor), __typeof(System::Drawing::Design::UITypeEditor)


However I get the following errors

c:\Documents and Settings\Neo\My Documents\Visual Studio Projects\Modeler\Form1.h(209): error C2065: 'System::Drawing::Design::ImageEditor' : undeclared identifie
c:\Documents and Settings\Neo\My Documents\Visual Studio Projects\Modeler\Form1.h(209): error C3742: 'System::Drawing::Design::ImageEditor': could not convert to System::Type
c:\Documents and Settings\Neo\My Documents\Visual Studio Projects\Modeler\Form1.h(206): error C3725: 'System::ComponentModel::EditorAttribute': cannot resolve attribute overloa
could be 'System::ComponentModel::EditorAttribute::EditorAttribute(System::Type __gc *,System::Type __gc *)
or 'System::ComponentModel::EditorAttribute::EditorAttribute(System::String __gc *,System::Type __gc *)
or 'System::ComponentModel::EditorAttribute::EditorAttribute(System::String __gc *,System::String __gc *)
or 'System::ComponentModel::EditorAttribute::EditorAttribute(void)
c:\Documents and Settings\Neo\My Documents\Visual Studio Projects\Modeler\Form1.h(209): fatal error C1075: end of file found before the left brace '{' at 'c:\Documents and Settings\Neo\My Documents\Visual Studio Projects\Modeler\Form1.h(155)' was matche

I get the same errors with

System.Windows.Forms.Design.FileNameEditor and System.Drawing.Design.FontEdito

Do I need to include something

I'm using VC++ .NET 200

Thanks in advance.
 
Did you add the System.Design.dll to the projects "References"? This needs
to be done in addition to including them. At least in C# it does.

Regards,
Erin.
 
Back
Top