Re: calling modal dialog function from external c code
- From: "Ajay Kalra" <ajaykalra@xxxxxxxxx>
- Date: 27 Dec 2006 10:06:26 -0800
tim wrote:
Are you using this in a Regular DLL or a different thread?
Regular DLL, at a guess.
That will do it. You will need to use AFX_MANAGE_STATE and change the
state.
This would mean m_cltStaticText has not been subclassed.
Having a quick search around, I suspect this maybe where I am going
wrong...
How did you associate the static control that is represented by m_ctlStaticText?
Using the Add Member Variable Wizard, which appears to add the
following:
// MyAppDlg class header
CStatic m_ctlStaticText;
// MyAppDlg::DoDataExchange
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, ID_STATIC_TEXT, m_ctlStaticText);
Am I missing something there?
That all looks good. I think not using AFX_MANAGE_STATE is very likely
to be the problem. This is needed only in a Regular DLL and not in EXE
or a MFC Extension DLL.
---
Ajay
.
- Follow-Ups:
- References:
- calling modal dialog function from external c code
- From: tim
- Re: calling modal dialog function from external c code
- From: Scott McPhillips [MVP]
- Re: calling modal dialog function from external c code
- From: tim
- Re: calling modal dialog function from external c code
- From: Ajay Kalra
- Re: calling modal dialog function from external c code
- From: tim
- Re: calling modal dialog function from external c code
- From: Ajay Kalra
- Re: calling modal dialog function from external c code
- From: tim
- calling modal dialog function from external c code
- Prev by Date: Re: created windows service
- Next by Date: Re: CStdioFile::Open gives error "No error occurred"
- Previous by thread: Re: calling modal dialog function from external c code
- Next by thread: Re: calling modal dialog function from external c code
- Index(es):
Relevant Pages
|