delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/10/01:36:55

From: mfitzger AT elora DOT math DOT uwaterloo DOT ca (Mark Fitzgerald)
Subject: Re: Windows Resource Scripts
10 Dec 1998 01:36:55 -0800 :
Message-ID: <Pine.SOL.3.96.981209112229.5715A-100000.cygnus.gnu-win32@elora.math.uwaterloo.ca>
References: <000801be2323$a54d80e0$5a0de718 AT tlegge DOT fundy DOT net>
Reply-To: Mark Fitzgerald <mfitzger AT elora DOT math DOT uwaterloo DOT ca>
Mime-Version: 1.0
To: Timothy Legge <tlegge AT fundy DOT net>
Cc: gnu-win32 AT cygnus DOT com

On Tue, 8 Dec 1998, Timothy Legge wrote:

> Hi
> 
> Is there any information available on how to create a Windows program that
> uses a resource file.

A little.  The FAQ mentions that a COFF file can be produced from a textal
RC file using 'windres'.  Type 'windres --help' to get some basic info. 
Aside from taking a few minutes to get the command-line parameters right,
it worked well for me.  I used output for COFF, not RES.

(Aside: what can I use RES files for with the cygwin tools?)

> My application that compiles with Visual C++ 5.0 makes use of a menu and a
> Dialog.  Any ideas how to compile it with gnuwin32 gcc.
> 
> Tim

Once you have compiled your .rc file into a .coff file, then just add the
..coff file to the set of object files to be linked together by the linker.

That should be it.

Mark


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019