Newsgroups: comp.windows.ms.programmer
Path: funic!news.funet.fi!sunic!psinntp!psinntp!rpi!usc!sol.ctr.columbia.edu!ira.uka.de!gmd.de!jvnc.net!newsserver.technet.sg!solomon.technet.sg!scstech
From: scstech@solomon.technet.sg (Kenneth Soh)
Subject: Resource Help
Message-ID: <BzEzHv.46x@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:34:43 GMT
Lines: 20

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
