Article View: comp.os.ms-windows.programmer.misc
Article #2965Help: linking dialog resources with gcc
From: ryder
Date: Wed, 06 Aug 1997 00:00
Date: Wed, 06 Aug 1997 00:00
32 lines
2670 bytes
2670 bytes
hi. I'm working on a dialog-based C++/win32 application, using the gcc
compiler 'cause i'm cheap, and I'm really at an impasse here trying to
solve a strange problem with my dialog boxes. It seems as though when I
define just one dialog resource in the resource script, everything works
fine. However, when I try to add more dialog boxes (they're all modal
except for one modeless), one or more fail to appear at all when invoked,
and sometimes invoking one might even cause the program to crash. this
phenomenon seems to be affected by the order in which the dialogs are
defined in the .RC (and hence .RES) file: when I change the order,
different dialog boxes will appear and others will suddenly start to
malfunction. It is almost always the case that the dialog that is
defined first in the resource script works correctly. So it seems like
there is some kind of problem in the way the resources are getting added
to the executable, because if I examine the .RES file with a resource
editor, all the dialogs seem fair and equal.
The utilities I was using for compiling and linking resources were:
RC or RCL --resource compilers
res2coff --convert .res to object file
Then linking all the object files with GNU's linker, ld. I suppose I
probably wouldn't be getting these problems if I were using Microsoft's
VC++ or another integrated package, but I don't really want to spend that
money, and besides everything else seems to work perfectly with gcc.
Any suggestions or advice on this would be greatly appreciated. Thanks!
-Stephane Ryder
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
Technical Details
Message-ID:
<870898672.16158@dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c05399825cf603aa,start X-Google-Attributes: gid11318c,public X-Google-Thread: 10ba33,c05399825cf603aa,start X-Google-Attributes: gid10ba33,public X-Google-Thread: 113dfb,c05399825cf603aa,start X-Google-Attributes: gid113dfb,public X-Google-Thread: 105df1,c05399825cf603aa,start X-Google-Attributes: gid105df1,public From: ryder@fas.harvard.edu Subject: Help: linking dialog resources with gcc Date: 1997/08/06 Message-ID: <870898672.16158@dejanews.com> X-Deja-AN: 262640642 X-Http-User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Update a; Windows 95) X-Originating-IP-Addr: 141.248.131.218 (ppp0037.sd.gat.com) Organization: Deja News Posting Service X-Authenticated-Sender: ryder@fas.harvard.edu X-Article-Creation-Date: Wed Aug 06 20:17:57 1997 GMT Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32,gnu.gcc.help,gnu.g++.help