Re: CDialog contructor with nIDTemplate
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 23:12:05 -0400
You are suggesting that you are doing this in a DLL. Regular or extension? You need to
give a bit more context to make it an intelligible question. Where does this get
instantiated, for example? Is it or is it not in a DLL? Are you sure the template is in
the resources? There is not enough context here ot answer the question.
joe
On 14 Jun 2006 15:28:55 -0700, "Patanish" <anishpatankar@xxxxxxxxx> wrote:
Hi,Joseph M. Newcomer [MVP]
I have a dervied class from CDialog. In the constructor for that
derived class, I call -
CMyDlg::CMyDlg(CWnd* pParent ) : CDialog(IDD_FC_SPLASHSCREEN, pParent)
In the CDialog contructor, however the template is not found.
m_lpszTemplateName = MAKEINTRESOURCE(nIDTemplate);
The nIDTemplate (some int value) is the correct one defined in the
resource.h file, which is included in the project. The code compiles
and links fine.
But the m_lpszTemplateName remains null in the constructor and hence
the DoModal call on CMyDlg fails as well!
What is being done wrong here? I also tried using the AFX_MANAGE_STATE
macro, but that does not help (all code in the same dll)...
Please advise...
Thanks in advance,
Anish.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Prev by Date: Re: ScrollBar problem
- Next by Date: Re: multi-thread problem
- Previous by thread: Re: CDialog contructor with nIDTemplate
- Next by thread: Using CHtmlView in my ActiveX control
- Index(es):
Relevant Pages
|