🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #692

Resource Help

#692
From: Kenneth Soh
Date: Thu, 17 Dec 1992 17:35
20 lines
1200 bytes
Hi !

This is my first attempt to use a resource from a windows program.
I've created a dialog window using the Microsoft Windows' Dialog
Editor and I intend to use it in my program as a modeless dialog.

I am using the Microsoft MFC classes and I have inherited from
the CDialog a customised class of my own. The constructor of this
class then does a call to Create( <resource-dialog-name>, <parent
window> ). I then call SendMessage(WM_INITDIALOG) to force my
OnInitDiag() to execute.

I cannot manage to get the dialog window out and hence upon tracing
I realise that my Create() actually returns zero. The resource
cannot be loaded. Can someone advise ??

Many thanks.

Kenneth Soh
Singapore
Technical Details
Message-ID: <BzEzJ2.4FA@newsserver.technet.sg>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!newsserver.technet.sg!solomon.technet.sg!scstech

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!newsserver.technet.sg!solomon.technet.sg!scstech
From: scstech@solomon.technet.sg (Kenneth Soh)
Subject: Resource Help
Message-ID: <BzEzJ2.4FA@newsserver.technet.sg>
Sender: news@newsserver.technet.sg
Nntp-Posting-Host: solomon.technet.sg
Organization: Singapore Computer Systems Ltd
Date: Thu, 17 Dec 1992 17:35:25 GMT
Lines: 20