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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-11 10:04:48 PST Path: supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!freenix!oleane.net!oleane!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Dialogresources on WinNT Date: 11 Sep 2000 18:58:57 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: <39BD0254.2041DD8B@icn.siemens.de> NNTP-Posting-Host: cergy-15-75.abo.wanadoo.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: wanadoo.fr 968691883 16828 164.138.109.75 (11 Sep 2000 17:04:43 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 11 Sep 2000 17:04:43 GMT User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 Xref: supernews.google.com comp.lang.ada:591 Date: 2000-09-11T17:04:43+00:00 List-Id: Alfred Hilscher writes: > 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 ? You should try using windres instead of rc+res2coff. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| --| "The best way to travel is by means of imagination"