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,5feb723c26279aee X-Google-Attributes: gid103376,public From: "David Botton" Subject: Re: Win32 dialogs/resource grief (longish) Date: 2000/03/01 Message-ID: #1/1 X-Deja-AN: 591628170 References: <38BC8428.901597BD@brighton.ac.uk> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: admin@usenetserver.com Organization: UseNet Server, Inc. http://www.usenetserver.com - Home of the fastest NNTP servers on the Net. NNTP-Posting-Date: Wed, 01 Mar 2000 00:28:02 EST Newsgroups: comp.lang.ada Date: 2000-03-01T00:00:00+00:00 List-Id: Your problem is the tools, not the code. res2coff is botching up the job. You must place both dlgs in a single resource script. Create your res and then run MS's cvtres on it. If you want to go all the way GNU use windres and include a line like this at the start of your resource #include "E:\gnat\mingw32\include\windows32\defines.h" That will suck in the defines for your resources. So again: 1. All resources in one .rc file 2. use windres, or any rc program and MS cvtres I have a copy of windres at http://www.adapower.com/com/windres.zip David Botton John English wrote in message <38BC8428.901597BD@brighton.ac.uk>... >I have a problem with an apparent bug to do with using resources >with the Win32 binding -- long post, sorry, but it's stripped as >far down as I can manage. I'm using Gnat 3.12 here. Any advice >*much* appreciated -- I'm running out of walls to bang my head >against :-( > > brcc32 combodlg.rc > res2coff -i combodlg.res -o combodlg.o > brcc32 yesnodlg.rc > res2coff -i yesnodlg.res -o yesnodlg.o > gnatmake test_dialogs.adb