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-Thread: 103376,347f7cbe27451012 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-Id: <1259577.KlClE9QBpM@linux1.krischik.com> From: Martin Krischik Subject: Re: Take Command Plugin, Win32Ada and Ada.Directories Newsgroups: comp.lang.ada Date: Wed, 14 Nov 2007 21:15:43 +0100 References: <3343563.psPA6e9Oqh@linux1.krischik.com> <1pkwbr5s12cf9$.9k2umlcxqzbr.dlg@40tude.net> <473A1241.90702@obry.net> <1vrktz0rlauvu.1nm0xh8n2wl90.dlg@40tude.net> <473ab86d$1@news.post.ch> <473ac065$0$16659$9b4e6d93@newsspool3.arcor-online.net> <1195039184.134708.325400@57g2000hsv.googlegroups.com> <1uxehqhjyj9tb$.1kijqqh179oad$.dlg@40tude.net> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 84.75.167.107 (84.75.167.107) NNTP-Posting-Date: Wed, 14 Nov 2007 21:16:24 +0100 X-Trace: 9050f473b5798f1ee02ce11214 Xref: g2news1.google.com comp.lang.ada:18389 Date: 2007-11-14T21:15:43+01:00 List-Id: Dmitry A. Kazakov wrote: > The problem is that Windows since NT is UTF-16, rather than UCS-2. So to > use Wide_String just makes no any sense. It is not an array of characters > anyway. Thus one could use plain String instead. Not quite - for interfacing with C you need an null character at the end of the string - and for UTF-16 that is easier to handle using Wide_Character to append to a Wide_String. Not that is would be impossible with String. Anyway - I found that Wide_String and Wide_Character work quite well for a Win32 application. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com