comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: [ranting] Take Command Plugin, Win32Ada and Ada.Directories
Date: Wed, 14 Nov 2007 20:21:14 +0100
Date: 2007-11-14T20:21:14+01:00	[thread overview]
Message-ID: <1879091.zaQevfrQqV@linux1.krischik.com> (raw)
In-Reply-To: 16yvzzr9fekdo.1mb7ng8z7yt49$.dlg@40tude.net

Dmitry A. Kazakov wrote:

> On Wed, 14 Nov 2007 14:31:08 +0100, Georg Bauhaus wrote:
> 
>> The library API should be easy to call in programs, given
>> Interfaces.C.*?
> 
> Except that SetWindowText (Window, "Hello!"); would become about 20-30
> lines long, it is easy to call...

No, not relay. With my little plug-in project it's not that bad. In fact -
out of the top of my head and current experience with Win32Ada it would be:

SetWindowTextW (Window, "Hello!" & Win32.Wide_Nul);

Have a look at the sources from the project to see how it works:

http://code.google.com/p/mkutils/

Or have a look at the Wiki;

http://www.jpsoftwiki.com/wiki/index.php?title=Plugin/Wildcard_Search

I think a similar robust C implementation would only be 20% shorter - if you
have a C compiler with alloca support - otherwise memory management will
eat up any advantage C might have hat.

Martin

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



  parent reply	other threads:[~2007-11-14 19:21 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12 19:53 [ranting] Take Command Plugin, Win32Ada and Ada.Directories Martin Krischik
2007-11-13  8:57 ` Dmitry A. Kazakov
2007-11-13  9:52   ` Martin Krischik
2007-11-13 21:08   ` Pascal Obry
2007-11-14  8:33     ` Dmitry A. Kazakov
2007-11-14  8:56       ` Martin Krischik
2007-11-14  9:31         ` Georg Bauhaus
2007-11-14 11:19           ` Vadim Godunko
2007-11-14 14:22             ` Dmitry A. Kazakov
2007-11-14 20:15               ` Martin Krischik
2007-11-15  8:37                 ` Dmitry A. Kazakov
2007-11-14 13:15           ` [ranting] " Martin Krischik
2007-11-14 13:31             ` Georg Bauhaus
2007-11-14 14:36               ` Dmitry A. Kazakov
2007-11-14 15:13                 ` Georg Bauhaus
2007-11-14 15:35                   ` Dmitry A. Kazakov
2007-11-14 16:22                     ` Georg Bauhaus
2007-11-14 19:32                     ` Martin Krischik
2007-11-15  8:54                       ` Dmitry A. Kazakov
2007-11-16  6:54                         ` Randy Brukardt
2007-11-14 19:23                   ` Martin Krischik
2007-11-14 20:05                     ` Georg Bauhaus
2007-11-14 19:21                 ` Martin Krischik [this message]
2007-11-14  9:36         ` Dmitry A. Kazakov
2007-11-14 18:38           ` Martin Krischik
2007-11-15  1:51             ` John W. Kennedy
2007-11-15  9:08             ` Dmitry A. Kazakov
2007-11-14  8:49     ` Martin Krischik
replies disabled

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