2010-11-23 2 views
1

나는 Windows :: Forms 응용 프로그램을 가지고 있으며 사용자 정의 컨트롤을 추가하고 싶습니다. 기본적으로 일부 이미지가 표시되고 드로잉하는 일부 베 지어 곡선과 연결됩니다.동일한 Windows :: Forms 프로젝트에서 사용자 정의 컨트롤을 참조 할 수 있습니까?

이전에 같은 프로젝트에서 사용자 지정 컨트롤을 표시하도록 Windows Forms 디자이너를 관리했으나 이번에는 작동하지 않을 것이라고 확신합니다. 그냥 말한다 :

#include "MyCustomControl.h" 

namespace MyNamespace { 

    public ref class MyGui: public System::Windows::Forms::Form 
    { 
    private: MyNamespace::MyCustomControl^ m_customControl; 

    }; 
} 

이 단지 불가능 또는 일부 특이한 존재 :

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 마지막 시간을 가지고 무엇이라고 생각하는) 네임 스페이스를 언급 컨트롤을 만드는거야 해결 방법이 누락 되었습니까?

+0

MyCustomControl.h의 내용을 표시하며 네임 스페이스와 클래스 이름 만 표시합니다. –

답변