home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4313 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. 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
  3. From: scstech@solomon.technet.sg (Kenneth Soh)
  4. Subject: Resource Help
  5. Message-ID: <BzEzJu.4L4@newsserver.technet.sg>
  6. Sender: news@newsserver.technet.sg
  7. Nntp-Posting-Host: solomon.technet.sg
  8. Organization: Singapore Computer Systems Ltd
  9. Date: Thu, 17 Dec 1992 17:35:53 GMT
  10. Lines: 20
  11.  
  12. Hi !
  13.  
  14. This is my first attempt to use a resource from a windows program.
  15. I've created a dialog window using the Microsoft Windows' Dialog
  16. Editor and I intend to use it in my program as a modeless dialog.
  17.  
  18. I am using the Microsoft MFC classes and I have inherited from
  19. the CDialog a customised class of my own. The constructor of this
  20. class then does a call to Create( <resource-dialog-name>, <parent
  21. window> ). I then call SendMessage(WM_INITDIALOG) to force my
  22. OnInitDiag() to execute.
  23.  
  24. I cannot manage to get the dialog window out and hence upon tracing
  25. I realise that my Create() actually returns zero. The resource
  26. cannot be loaded. Can someone advise ??
  27.  
  28. Many thanks.
  29.  
  30. Kenneth Soh
  31. Singapore
  32.