Solved

Custom control in a Dll dialog.

Posted on 2004-03-24
5
240 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:viswanathat
  • 2
5 Comments
 
LVL 16

Expert Comment

by:nonubik
ID: 10714383
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.
0
 
LVL 16

Expert Comment

by:nonubik
ID: 11850242
acccept
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12037916
PAQed - no points refunded (of 25)

Computer101
E-E Admin
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sum13 challenge 24 77
has22 challenge 11 71
isEverywhere  challenge 19 64
has77  challenge 9 67
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now