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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,77437cbde85a33d9,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-11 09:03:31 PST Path: supernews.google.com!sn-xit-02!supernews.com!easynews!bignews.mediaways.net!blackbush.xlink.net!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!frankfurt.de.uu.net!newsfeed.siemens.de!news.mch.sbs.de!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Dialogresources on WinNT Date: Mon, 11 Sep 2000 18:03:32 +0200 Organization: Siemens AG Message-ID: <39BD0254.2041DD8B@icn.siemens.de> NNTP-Posting-Host: 139.21.122.158 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:590 Date: 2000-09-11T18:03:32+02:00 List-Id: Hi, when I've tried to write a little GUI on Windows NT, I've encountered a problem. I've written some dialogtemplates, put them in one resource file (*.rc) and compiled it with the resource compiler (rc.exe). In my program I call the api-function "DialogBox" twice, once for the first dialog and (later) again for the second. With the Aonix compiler it worked well. So I converted the resource (res2coff.exe) for GNAT, by only one dialog works. When trying to load the otherone the api always returns errorcode "-1". Any idea what I did wrong ?