home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: 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: <BzEzJu.4L4@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:53 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
-