Re: CDialogBar Error with ntdll.dll

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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]

.



Relevant Pages

  • Re: CDialogBar Error with ntdll.dll
    ... exactly that on a fresh MDI MFC app then it works fine. ... call the new class (my newly derived class from a new dialog). ... > CDialogBar is a base class that does not know the dialog template ID. ...
    (microsoft.public.vc.mfc.docview)
  • Re: CDialogBar Error with ntdll.dll
    ... application does compile but does not run. ... Click on your dialog template and derive a class for it, from CDialogBar. ... Then use your derived class. ...
    (microsoft.public.vc.mfc.docview)
  • Re: data encryption advice needed
    ... app nad the "behind the scenes" one. ... template that came from trusted source. ... the digital signature looks more ...
    (microsoft.public.dotnet.security)
  • Re: Newbie runtime error problem
    ... > Essentially I want to open Word, open a template in a sub directory ... assume that you're either using MSForms in a VB app, ... MSForms in a VB app. ... or at least closing the document object. ...
    (microsoft.public.vb.general.discussion)
  • TurboGears 2.0 final released
    ... flexible template system. ... easily configure into your app when quickstarting a project. ... We have zero config needed support for development database backed by SQLite ... for three major python template engines out of the box, ...
    (comp.lang.python.announce)