From: Xavier Petit <le@vieux.pro>
Subject: win32 interfacing check (SetClipboardData)
Date: Tue, 29 Aug 2017 22:28:01 +0200
Date: 2017-08-29T22:28:00+02:00 [thread overview]
Message-ID: <59a5ce50$0$7168$426a74cc@news.free.fr> (raw)
Hi, I would like to know if this win32 code is “correct” from your PoV
or could be written in a better way, especially this block :
declare
Tmp : Wide_String (1 .. Source'Length + 1) with Address => AMem;
begin
Tmp := Source & Wide_Character'First;
end;
Complete code : https://pastebin.com/raw/CnUbGVyk
It copies the Source Wide_String in the Windows clipboard and needs
Win32Ada & -gnatW8 -gnata compilation flags (in order to get correct
unicode characters and assertions enabled)
Thanks by advance
--
Xavier Petit
next reply other threads:[~2017-08-29 20:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-29 20:28 Xavier Petit [this message]
2017-08-30 16:04 ` win32 interfacing check (SetClipboardData) Dmitry A. Kazakov
2017-08-30 18:41 ` Xavier Petit
2017-08-30 21:17 ` Dmitry A. Kazakov
2017-09-01 12:51 ` Xavier Petit
2017-09-01 13:10 ` Dmitry A. Kazakov
2017-09-02 9:38 ` Xavier Petit
2017-09-02 12:29 ` Dmitry A. Kazakov
2017-08-31 1:41 ` Randy Brukardt
2017-09-01 12:53 ` Xavier Petit
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox