home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / tools / 1769 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.os.ms-windows.programmer.tools
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: Re: Resource Help
  5. Message-ID: <1992Dec18.222932.23800@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. References: <BzEzJ2.4FA@newsserver.technet.sg>
  8. Date: Fri, 18 Dec 1992 22:29:32 GMT
  9. Lines: 25
  10.  
  11. In article <BzEzJ2.4FA@newsserver.technet.sg> scstech@solomon.technet.sg (Kenneth Soh) writes:
  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.     Did you compile the resource script and bind it into your
  29.     .exe?  I don't know how MS does this, but in Borland, just
  30.     put the .rc script file in the project and the make will
  31.     invoke the resource compiler.
  32. -- 
  33. John A. Grant                        jagrant@emr1.emr.ca
  34. Airborne Geophysics
  35. Geological Survey of Canada, Ottawa
  36.