comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: GetOpenFilename
Date: 1999/04/16
Date: 1999-04-16T00:00:00+00:00	[thread overview]
Message-ID: <u3e20zjyb.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 4AsR2.646$dd.256779@WReNphoon3

jboulais@sikorsky.com (Boulais, Jeffrey M) writes:

> I am trying to use GetOpenFilename to get an open file dialong.  I have code
> that work fine under gnat 3.04
> ( using -gnatp ) that doesn't work now under gnat3.11 (w/o -gnatp).  I was
> previously using an unchecked
> conversion of the first character of a string to a Win32.LPSTR for the
> lpstrFile field.  Now this causes the
> open file dialog to not display.  If I use a dummy variable defined of type
> Win32.LPSTR, the dialog opens
> fine, but I can't get the filename from the LPSTR type to a standard String.
> I also tries assigning the LPSTR
> variable the unchecked conversion of the string, and that made it stop
> working as well.
> 
> Does anyone have suggestions for this type of thing?  Greatly appreciated...

You'll have to post the code to get a real answer.

Or just download Windex
(http://www.erols.com/leakstan/Stephe/index.html), and use
Windex.Common_Dialogs.File.Open_Dialog, which does all the nasty
conversions for you, leaving you with a nice clean Ada interface.

-- Stephe




  reply	other threads:[~1999-04-16  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-15  0:00 GetOpenFilename Boulais, Jeffrey M
1999-04-16  0:00 ` Stephen Leake [this message]
1999-04-16  0:00 ` GetOpenFilename dennison
1999-04-19  0:00 ` GetOpenFilename David Botton
replies disabled

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