Link to home
Start Free TrialLog in
Avatar of viswanathat
viswanathat

asked on

Custom control in a Dll dialog.

I have a custom control (MFCGridCtrl) working well in a dialog of Appwizard exe.

If i add the same in a dialog of Extention dll, and calling the dialog from the exe, the dialog is not launching.

Even if you add simply a custom control to a dll dialog, without adding any code, the dialog is not launching from the exe.

How to get the custom control work for a dialog.?

the style and all are correct.

Regards..
Viswanath AT.
Avatar of nonubik
nonubik

Try to use call AFX_MANAGE_STATE(AfxGetStaticModuleState()); from your dialog dll MFC related methods. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_afx_manage_state.asp for more info.
acccept
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial