🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Accessing Dlg Box From WRT

#2047
From: Jill Patterson
Date: Thu, 11 Apr 1991 01:00
19 lines
1198 bytes
	I'm trying to bring up a Dialog Box, such as the About1 Dialog Box
in Petzold's Book.  I am using BC++ and WRT.  I have created a Dialog Box
using the Whitewater Resource Toolkit and have given it the name DLG_ABOUT.
My question is this how do I bring up the dialog box.  I have something like
the following

	case IDM_ABOUT	:
		DialogBox(hInstance, "DLG_ABOUT", hwnd, lpfnAboutDlgProc);
		return 0;

	This Code Is the same as that found on page 406 of the Petzold book.
If anybody could send me some sample code on how to call I Dialog Created from
WRT I sure would appreciate it.  Or perhaps I missed something in the manual?

Whenever I select the About Menu Item I get a Unrecoverable Application Error.

THX
bytor@milton.u.washington.edu
Technical Details
Message-ID: <1991Apr11.010030.26145@milton.u.washington.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!ogicse!milton!bytor

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!ogicse!milton!bytor
From: bytor@milton.u.washington.edu (Jill Patterson)
Newsgroups: comp.windows.ms.programmer
Subject: Accessing Dlg Box From WRT
Summary: How To Make A Dialog Box Appear
Message-ID: <1991Apr11.010030.26145@milton.u.washington.edu>
Date: 11 Apr 91 01:00:30 GMT
Organization: University of Washington
Lines: 19