
HELP: activex control in dialog box in mfc user dll (dialog not launching)
have developed
MFC user dll statically linked to mfc. the dll is a dialog
box which is a container for a mschart ocx object.
although the dll export function which launches the dialog box (DoModal())
works fine without the ocx, when the ocx is included, the dialog box will
not initialize. there are no error messages. Debugging reveals that it is
bombing in the createdialogindirect (mfc) function. for some reason, the
m_nflags variable is set to 256 after the windows createdialogindirect is
called. This causes the mfc function to return false.
again, NO ERROR or WINDOW is created. the dll is loaded from a dialog-based
mfc app. Is there something i have not included in the dll which is
required for the ocx control?