🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #121

EndDialog(...) problems, please help.

#121
From: Y. Lan
Date: Thu, 30 Jul 1992 12:51
23 lines
1304 bytes
Hi! My honourable friends:

Can anybody out there can tell me under what circumstances the EndDialog
procedure will fail?

The story is:

I compiled and linked the programme listed on P548 (Chapter 10,
dialogbox) of Petzold's book 'Programming Windows', e.g. the file dialog
box subroutines. Compile ank link ok. When I run it, I clicked the OK
button, my Windows goes hung! (I clicked the Cancel button, it works
well). I used Turbo debugger (My compiler is Borland C++ 2.0) to trace
this programme, every step seems to work well until the programme comes
to the EndDialog(hdlg,TRUE), debugger tell me : Exception 13 Error code
532. What's wrong ? I think the Mr. Petzold's programme is ok except the
resource file defines the dialog box too small.

Please Help ! and I found the DEFPUSHBUTTON does not work, I mean when I
press enter, it does not generate a IDOK message.

Thank you in advance.

Lan
Technical Details
Message-ID: <3663@keele.keele.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!keele!seq1.kl.ac.uk!ggp08

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!keele!seq1.kl.ac.uk!ggp08
From: ggp08@seq1.kl.ac.uk (Y. Lan)
Newsgroups: comp.windows.ms.programmer
Subject: EndDialog(...) problems, please help.
Message-ID: <3663@keele.keele.ac.uk>
Date: 30 Jul 92 12:51:39 GMT
Sender: ggp08@seq1.keele.ac.uk
Reply-To: ggp08@seq1.kl.ac.uk (Y. Lan)
Organization: University of Keele, England
Lines: 23