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,a3914332df5b6ff9,start X-Google-Attributes: gid103376,public From: jboulais@sikorsky.com (Boulais, Jeffrey M) Subject: GetOpenFilename Date: 1999/04/15 Message-ID: <4AsR2.646$dd.256779@WReNphoon3>#1/1 X-Deja-AN: 466865953 X-Trace: WReNphoon3 924210560 10.0.2.19 (Thu, 15 Apr 1999 14:09:20 PDT) Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here NNTP-Posting-Date: Thu, 15 Apr 1999 14:09:20 PDT Newsgroups: comp.lang.ada Date: 1999-04-15T00:00:00+00:00 List-Id: 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... -**** Posted from RemarQ, http://www.remarq.com/?a ****- Search and Read Usenet Discussions in your Browser - FREE -