Re: CDialogBar Error with ntdll.dll
- From: jtfaulk@xxxxxxxxxxxxxx
- Date: 21 Jul 2005 11:04:11 -0700
Yeah, if I include the class (MyDialogBar.h) in the project no problem.
But as soon as I try to include the variable in the MainFrm.h
CMyDialogBar m_myDlgBar;
I get a 'memory could not be read' error.
If anybody has an idea that would be greatly appreciated - because I'm
banging my head against the wall.
Thank you,
j
jtfaulk@xxxxxxxxxxxxxx wrote:
> Hey Scott,
>
> Thank you for replying.
>
> I did what you suggested and I still get an assertion error. If I do
> exactly that on a fresh MDI MFC app then it works fine. Crap! I have
> no idea. My app will compile but will not start if I try to include or
> call the new class (my newly derived class from a new dialog). I have
> the dialog set to be a child dialog with a border style of none.
>
> Bollocks!
>
> j
>
> Scott McPhillips [MVP] wrote:
> > jtfaulk@xxxxxxxxxxxxxx wrote:
> > > I have a normal VC++ 2003 (MFC)MDI and I'm trying to simply include the
> > > variable:
> > >
> > > CDialogBar m_MyDlg;
> > >
> > > in the MainFrm.h. If I try to include this I get and error. The
> > > application does compile but does not run. I get and error and the app
> > > doesn't load. I've tried starting a new MDI application from scratch
> > > and tried including this variable and it worked fine; but with my
> > > application it does not.
> > >
> > > Does anybody have an idea as to what the heck I'm doing wrong?
> > >
> > > Any help would be greatly appreciated. Thank you,
> > >
> > > j
> > >
> >
> > CDialogBar is a base class that does not know the dialog template ID.
> > So it cannot be constructed. Click on your dialog template and derive a
> > class for it, from CDialogBar. Then use your derived class.
> >
> > --
> > Scott McPhillips [VC++ MVP]
.
- Follow-Ups:
- Re: CDialogBar Error with ntdll.dll
- From: Scott McPhillips [MVP]
- Re: CDialogBar Error with ntdll.dll
- References:
- CDialogBar Error with ntdll.dll
- From: jtfaulk
- Re: CDialogBar Error with ntdll.dll
- From: Scott McPhillips [MVP]
- Re: CDialogBar Error with ntdll.dll
- From: jtfaulk
- CDialogBar Error with ntdll.dll
- Prev by Date: Re: How To Add Rows and Cells in the Table using IHTMLTable
- Next by Date: Re: CDialogBar Error with ntdll.dll
- Previous by thread: Re: CDialogBar Error with ntdll.dll
- Next by thread: Re: CDialogBar Error with ntdll.dll
- Index(es):
Relevant Pages
|