在MFC中使用.NET控件
我想在MFC程序中使用.NET控件.
编译时,在以下几行代码,不能通过.
BEGIN_DELEGATE_MAP( CDlgTestDlg)
EVENT_DELEGATE_ENTRY( OnClick, System::Object^, System::EventArgs^ )
END_DELEGATE_MAP()
F:\Program Design\Microsoft Visual Studio 8\VC\include\msclr\event.h(26) : error C2039: “delegate_proxy_type”: 不是“CDlgTestDlg”的成员
f:\program design\example\dlgtest\dlgtest\DlgTestDlg.h(10) : 参见“CDlgTestDlg”的声明
.\DlgTestDlg.cpp(38): 参见对正在编译的类 模板 实例化“msclr::delegate_map::internal::delegate_proxy_factory<CLASS>”的引用
with
[
CLASS=CDlgTestDlg
]
DlgTest.cpp
请高手指点.