本文介绍了为什么不编译此代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自MSDN
http://msdn.microsoft.com/en -us/library/system.windows.forms.design.filenameeditor(VS.80).aspx [ ^ ]

公众:
[EditorAttribute(System :: ComponentModel :: Design :: FileNameEditor :: typeid,
System :: Drawing :: Design :: UITypeEditor :: typeid)]
属性String ^ testFilename
{
字符串^ get()
{
返回文件名;
}
void set(String ^ value)
{
文件名=值;
}
}
私人:
字符串^文件名;

我想在propertyGrid的stringItem单击事件时看到openFileDialog. :-)

但是MSDN示例代码不起作用.

编译器说找不到FileNameEditor类或NameSpace"

请帮我.

二手C ++/CLI,.NET 2.0,VS2008


________________________________________________________________________

如何检查DLL文件?

我更改了DLL文件,但是

此文件也失败了



更多问题〜

在MSDN的示例代码中
VB:GetType(System.Windows.Forms.Design.FileNameEditor)
C#:typeof(System.Windows.Forms.Design.FileNameEditor)
C ++:System :: ComponentModel :: Design :: CollectionEditor :: typeid

不使用同一类(vb,c#:FileNameEditor,c ++:CollectionEditor)

是吗?

________________________________________________________________________

谢谢!!我找到它了!

from MSDN
http://msdn.microsoft.com/en-us/library/system.windows.forms.design.filenameeditor(VS.80).aspx[^]

public:
[EditorAttribute(System::ComponentModel::Design::FileNameEditor::typeid,
System::Drawing::Design::UITypeEditor::typeid)]
property String^ testFilename
{
String^ get()
{
return filename;
}
void set( String^ value )
{
filename = value;
}
}
private:
String^ filename;

I want see openFileDialog when propertyGrid''s stringItem click event. :-)

but MSDN sample code is do not work.

compiler said "can not find FileNameEditor Class or NameSpace"

Plz help me.

used C++ / CLI, .NET 2.0, VS2008


________________________________________________________________________

how can I check DLL file?

I''m changed my DLL file But

this file failed too



More Question~

in MSDN''s sample code
VB : GetType(System.Windows.Forms.Design.FileNameEditor)
C# : typeof(System.Windows.Forms.Design.FileNameEditor)
C++: System::ComponentModel::Design::CollectionEditor::typeid

dose not used same class (vb, c#: FileNameEditor, c++: CollectionEditor)

Is it right??

________________________________________________________________________

Thank you!! I find it!!

推荐答案




这篇关于为什么不编译此代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 00:22