Hello,

Is there some document, that describe the sequence of actions, that result in displaying of a Dialog Window from a .DLL.
One important detail - the Dialog Window is created via resource/toolbox inteface.

Below is code from some example (which works), that displays simple window (with client area inside it).
In this code the window class is ctreated inside of application class.
Here is extract from application class:

Code:
class CMyWindow : public CFrameWnd
{
	CStatic* cs;
public:
	CMyWindow();
};

CMyWindow::CMyWindow()
{
	Create(NULL, L"MyWindow", WS_VISIBLE, CRect(0,0,200,200));
	cs = new CStatic();
	cs->Create(L"AAAAA", WS_CHILD|WS_VISIBLE|SS_CENTER, CRect(50, 80, 150, 150), this);
}

BOOL Cvpi_MFC_regularApp::InitInstance()
{
	CWinApp::InitInstance();
	m_pMainWnd = new CMyWindow();
	m_pMainWnd->ShowWindow(SW_SHOW);
	m_pMainWnd->UpdateWindow();
	return TRUE;
}
Below is extract from new .DLL application class, which doesn't work (resource IDD_FORMVIEW, associated with class CPixie3_DLG in't displayed).
It's shorter, than previous one, as CPixie3_DLG class is already created.
Code:
BOOL CPixie3_GUIApp::InitInstance()
{
	CWinApp::InitInstance();
	m_pMainWnd = new CPixie3_DLG();
	m_pMainWnd->ShowWindow(SW_SHOW);
	m_pMainWnd->UpdateWindow();
	return TRUE;
}
Where is my mistake ?

Thanks in advance.

Pavel.