comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <p.obry@wanadoo.fr>
Subject: Re: Dialogresources on WinNT
Date: 11 Sep 2000 18:58:57 +0200
Date: 2000-09-11T17:04:43+00:00	[thread overview]
Message-ID: <u66o2sw4u.fsf@wanadoo.fr> (raw)
In-Reply-To: 39BD0254.2041DD8B@icn.siemens.de

Alfred Hilscher <Alfred.Hilscher@icn.siemens.de> 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"



  reply	other threads:[~2000-09-11 16:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-11 16:03 Dialogresources on WinNT Alfred Hilscher
2000-09-11 16:58 ` Pascal Obry [this message]
2000-09-11 17:25 ` David Botton
2000-09-11 18:05 ` tmoran
2000-09-11 18:33   ` David Botton
2000-09-12 10:19 ` Alfred Hilscher
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox