no, using multiple versions of MFC (yes, this includes the debug and release version of MFC with the same version number) in different DLL's and passing MFC data between them is not supported. int's, handles, and other non-MFC stuff should work.
BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if (!m_SplitWnd.CreateStatic(this,1,2))
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}
if (!m_SplitWnd.CreateView(0,0,
pContext->m_pNewViewClass,CSize(100,100),pContext))
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}
// add the second splitter pane - an input view in column 1
//这句出的问题!!
if (!m_SplitWnd.CreateView(0, 1,
RUNTIME_CLASS(CMyView1), CSize(100, 100), pContext))
{
TRACE0("Failed to create second pane\n");
return FALSE;
}
AfxMessageBox(TEXT("444"));