Re: Problems with CDialog

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Fran (Fran_at_discussions.microsoft.com)
Date: 12/23/04


Date: Thu, 23 Dec 2004 03:21:03 -0800

Hi!

This was the way i do that the first time, and it works, the problem was
that i
cannot seen the dialog, i had to press alt+tab to see the dialog, i think
the problem is that my application have independent windows. When i try to do
it in the way i have told you everything works, i can see the dialog, the
problem is i cant call doModal() because i get a assert error.

Any idea to resolve my problem?

Thank you very much.

"Jeff Partch [MVP]" wrote:

> "Fran" <Fran@discussions.microsoft.com> wrote in message
> news:4DFE85A2-89F1-4082-8C97-CFAC73D8C98F@microsoft.com...
> > Hello!
> >
> > I have an application that uses 2 monitors. In one monitor i show some
> > videos and in the other monitor i show the user interface. When I try to
> open
> > the dialog this cannot be seen and i have to press alt+tab keys so the
> > windows appears.
> > If i create de dialog in this way:
> >
> > MyDialog md;
> >
> > md.Create(IID_MYDIALOG,AfxGetMainWnd());
> > md.Show(1);
> >
> > The dialog work prefectly and it can be shown without any problem, but if
> i
> > try to
> > show it as a modal dialog i hava an assert exception.
> >
> > md.Create(IID_MYDIALOG,AfxGetMainWnd());
> > md.DoModal();
> >
> > Is there any way to resolve it?
>
> Try calling DoModal without first calling Create.
> --
> Jeff Partch [VC++ MVP]
>
>
>



Relevant Pages

  • Generic host process for win32 services error message
    ... on for the first time I receive the "Generic host process for win32 services ... error message. ... tried everything I can think of to resolve this problem with no luck. ... Mike Miller ...
    (microsoft.public.windowsxp.help_and_support)
  • Generic host process for win32 services error message
    ... has a HP Laserjet 4100 printer and seiko lable printer series 100 connected ... on for the first time I receive the "Generic host process for win32 services ... error message. ... tried everything I can think of to resolve this problem with no luck. ...
    (microsoft.public.windowsxp.general)
  • Re: Y&R ~ Heres a twist for you (spoiler speculation)
    ... results won't all happen in ONE episode. ... resolve the story in a believable way earlier on. ... I was around the first time this story ran and didn't enjoy it then ... LOL) and characters went DUMB then, ...
    (rec.arts.tv.soaps.cbs)
  • RE: 17 updates still failing - code now 80070652
    ... I'm sure someone has already helped you resolve this, ... be reading your post and have been having the same problem, ... This isn't the first time I've had to do this ... I have had a range of error messages ...
    (microsoft.public.windowsupdate)
  • Re: wget not resolving domain names
    ... > first time I try it. ... It will only resolve the name once I do an nslookup. ... $ dig @192.168.0.253 www.uit.no ...
    (Fedora)