私はWindows :: Formsアプリケーションを持っています。カスタムコントロールを追加したいと思います(基本的にはいくつかの画像を表示し、描画するいくつかのベジェ曲線にリンクしています)。同じWindows :: Formsプロジェクトでユーザーコントロールを参照することはできますか?
私は以前Windowsプロジェクトデザイナーに同じプロジェクトでカスタムコントロールを表示させることができたが、今回は動作させることができないと確信している。それはちょうど言う:
C++ CodeDOM parser error: Line: 524, Column: 33 --- Unknown type 'MyNamespace.MyCustomControl'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.
私は明示的に(私はこのworknigを得たものを最後の時間だと思った)名前空間を言及するコントロールを作成しています:
#include "MyCustomControl.h"
namespace MyNamespace {
public ref class MyGui: public System::Windows::Forms::Form
{
private: MyNamespace::MyCustomControl^ m_customControl;
};
}
はちょうど不可能これですか、いくつかの独特があります回避策私は行方不明ですか?
名前空間とクラス名だけMyCustomControl.hの内容を表示します。 –