comp.lang.ada
 help / color / mirror / Atom feed
* win32 interfacing check (SetClipboardData)
@ 2017-08-29 20:28 Xavier Petit
  2017-08-30 16:04 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 10+ messages in thread
From: Xavier Petit @ 2017-08-29 20:28 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-09-02 12:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 20:28 win32 interfacing check (SetClipboardData) Xavier Petit
2017-08-30 16:04 ` 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

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