From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6256d003d70668b X-Google-Attributes: gid103376,public From: John English Subject: Re: Binding Win32 resources into GNAT executables? Date: 2000/02/11 Message-ID: <38A3FAD6.3EBAC1D7@bton.ac.uk>#1/1 X-Deja-AN: 584513789 Content-Transfer-Encoding: 7bit References: <38A296A4.B9AE7D1D@bton.ac.uk> <87umbo$edk$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@bton.ac.uk X-Trace: saturn.bton.ac.uk 950270502 16901 193.62.183.204 (11 Feb 2000 12:01:42 GMT) Organization: University of Brighton Mime-Version: 1.0 NNTP-Posting-Date: 11 Feb 2000 12:01:42 GMT Newsgroups: comp.lang.ada Date: 2000-02-11T12:01:42+00:00 List-Id: Ted Dennison wrote: > In article <38A296A4.B9AE7D1D@bton.ac.uk>, > John English wrote: > > I've been playing with Win32 bindings under GNAT but have run into > > a problem with dialogs, which are defined in a resource file. The > > resource file has been compiled from a .rc file to a .res file, but > > I'm at a loss as to how to link this into my executable. Gnatlink > > doesn't recognise the format of the .res file (which surpises me > > very little), and I presume I'm just being extremely dense. > > If you installed everything in the default locations, there's a > section in the super-secret documentation (the GNAT for Windows NT: > User's Guide) that describes all this at > file:///C|/GNAT/Documentation/gnat_ug.html#SEC185 . If you need to find > this document again, it should be hidden in your start menu under the > program group "Gnat Ada95 Compiler. But don't tell anyone I told you. > ;-) Ho ho, very funny, Ted. Your advice would be welcome if I'd got 3.12 installed, but the 3.11 guide only goes up to #SEC162 (the index), so I'm afraid it doesn't help one bit. I may be dense, but I do try to RTFM before I ask my stupid questions, honest... However, Vladimir's response about using the RCL that comes with 3.12 was much more helpful (and he actually mentioned the fact that I would need 3.12 to follow his advice), so I might upgrade soon. Meanwhile, I've grabbed WINDRES as per David Botton's advice, which was also extremely helpful and solved my problem straight away without my having to reinstall GNAT on a whole bunch of machines. So, thanks Vladimir, thanks David. ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------