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