Hello Victor,

Thanks for response. I don't beleave, that it would be possible to debug, because .DLL is called from external CAD tool.
The .DLL must provide GUI to external tool.
In its most basic realisation I want .DLL show simple Dialog window IDD_FORMVIEW built in resource editor.
After buiding of the resource IDD_FORMVIEW I associated it with the class CPixie3_DLG (class CPixie3_DLG : public CFormView).

In MFC application (.exe, not .DLL) the dialog resource is attached to window inside of doc template like this:
Code:
	CSingleDocTemplate* pDocTemplate;
	pDocTemplate = new CSingleDocTemplate(
		IDR_MAINFRAME,
		RUNTIME_CLASS(CMFC_App1Doc),
		RUNTIME_CLASS(CMainFrame),       // main SDI frame window
		RUNTIME_CLASS(CMFC_App1View));
	if (!pDocTemplate)
		return FALSE;
	AddDocTemplate(pDocTemplate);
Should I adapt the same approach for my .DLL application - i.e. create and initialize CSingleDocTemplate object, or there is more simple method.
After all I don't need Doc class neither View ...

Regards,

Pavel.