Re: DoModal dialog fails with CDateTimeCtrl
From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 03/23/04
- Next message: Tim: "Re: DoModal dialog fails with CDateTimeCtrl"
- Previous message: Joseph M. Newcomer: "Re: Dumbass user or problem with regsvr32"
- In reply to: Andrew Sims: "DoModal dialog fails with CDateTimeCtrl"
- Next in thread: Tim: "Re: DoModal dialog fails with CDateTimeCtrl"
- Reply: Tim: "Re: DoModal dialog fails with CDateTimeCtrl"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Mar 2004 21:47:04 -0500
There is a dialog style that allows the dialog to be created even if there are errors. The
most common error is a missing DLL or improperly registered ActiveX control. If you tweak
the dialog style bit that allows it to come up even with errors, the missing control will
tell you where the problem is.
Note: I believe you can actually set this bit in the executable by opening the executable
image (.ocx file, presumably) in visual studio in Resource mode and editing the dialog
resource.
joe
On Mon, 22 Mar 2004 15:22:44 -0500, "Andrew Sims" <asimachkevitch@edisoft.com> wrote:
>Hello, all:
>
>
>
>Right away answer the possible questions:
>
>
>
>I've built ATL COM project under VisualStudio 6, output file - .dll.
>
>I call my COM from another application (Visual FoxPro);
>
>
>
>In my program there is a modeless dialog with a button, which calls another
>dialog, this time - modal dialog. This modal dialog contains CdateTimeCtrl
>contro.
>
>
>
>Finally about the problem. Everything is fine for all of the current
>customers, except one.
>
>On this particular machine this modal dialog (with datetime control) doesn't
>pop up. I cannot catch any error messages, nether try{}catch{.} nor
>GetLastError( = 0 ) give me any messages. If I remove this datetime ctrl
>from the dialog template, everything works fine. I thought may be his
>Windows XP are corrupted, I installed latest service pack on his machine, it
>doesn't work, DoModal() doesn't produce anything. It fails even before
>
>CDialog::OnInitDialog(); inside of OnInitDialog() of my class; This
>customer installed my program on another Windows XP machine - everything is
>fine, corresponding dialog pops up, but first one is still not working.
>
>
>
>Does anybody has any idea what is going on? Thank you in advance,
>
>Andrew
>
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
- Next message: Tim: "Re: DoModal dialog fails with CDateTimeCtrl"
- Previous message: Joseph M. Newcomer: "Re: Dumbass user or problem with regsvr32"
- In reply to: Andrew Sims: "DoModal dialog fails with CDateTimeCtrl"
- Next in thread: Tim: "Re: DoModal dialog fails with CDateTimeCtrl"
- Reply: Tim: "Re: DoModal dialog fails with CDateTimeCtrl"
- Messages sorted by: [ date ] [ thread ]