home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / ms / programm / 7424 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.2 KB

  1. Path: sparky!uunet!mcsun!uknet!keele!seq1.kl.ac.uk!ggp08
  2. From: ggp08@seq1.kl.ac.uk (Y. Lan)
  3. Newsgroups: comp.windows.ms.programmer
  4. Subject: EndDialog(...) problems, please help.
  5. Message-ID: <3663@keele.keele.ac.uk>
  6. Date: 30 Jul 92 12:51:39 GMT
  7. Sender: ggp08@seq1.keele.ac.uk
  8. Reply-To: ggp08@seq1.kl.ac.uk (Y. Lan)
  9. Organization: University of Keele, England
  10. Lines: 23
  11.  
  12. Hi! My honourable friends:
  13.  
  14. Can anybody out there can tell me under what circumstances the EndDialog
  15. procedure will fail?
  16.  
  17. The story is:
  18.  
  19. I compiled and linked the programme listed on P548 (Chapter 10,
  20. dialogbox) of Petzold's book 'Programming Windows', e.g. the file dialog
  21. box subroutines. Compile ank link ok. When I run it, I clicked the OK
  22. button, my Windows goes hung! (I clicked the Cancel button, it works
  23. well). I used Turbo debugger (My compiler is Borland C++ 2.0) to trace
  24. this programme, every step seems to work well until the programme comes
  25. to the EndDialog(hdlg,TRUE), debugger tell me : Exception 13 Error code
  26. 532. What's wrong ? I think the Mr. Petzold's programme is ok except the
  27. resource file defines the dialog box too small.
  28.  
  29. Please Help ! and I found the DEFPUSHBUTTON does not work, I mean when I
  30. press enter, it does not generate a IDOK message.
  31.  
  32. Thank you in advance.
  33.  
  34. Lan
  35.