comp.lang.ada
 help / color / mirror / Atom feed
From: "Philippe Bertin" <philippe.bertin@telenet.be>
Subject: Re: Translating a VB dll header to Ada
Date: 14 Apr 2007 07:01:48 -0700
Date: 2007-04-14T07:01:48-07:00	[thread overview]
Message-ID: <1176559308.535540.3560@p77g2000hsh.googlegroups.com> (raw)
In-Reply-To: <1176552993.629014.137900@y80g2000hsf.googlegroups.com>

Passing a string to a C-written DLL (a "char *") is to be used from
within VB by redeclaring that argument's type 'ByVal' rather than
'ByRef' (I know, it sounds rather absurd). This means one is tempted
to specify that argument as an 'in' argument, in Ada. However, if the
C-written DLL writes into that string (albeit only *changing*, not
necessarily lengthen it), I think you can indeed have an access
violation ...

In other words : is your problem still the same when specifying string
arguments as 'in out' ?

Kind regards,

PhB




  reply	other threads:[~2007-04-14 14:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11 19:48 Translating a VB dll header to Ada vienapl
2007-04-12  8:06 ` Dmitry A. Kazakov
2007-04-12 14:17   ` vienapl
2007-04-12 17:16     ` Dmitry A. Kazakov
2007-04-13 15:25       ` vienapl
2007-04-13 16:55         ` Dmitry A. Kazakov
2007-04-14  1:05           ` vienapl
2007-04-14  7:17             ` Dmitry A. Kazakov
2007-04-14 12:16               ` vienapl
2007-04-14 14:01                 ` Philippe Bertin [this message]
2007-04-14 15:30                 ` Dmitry A. Kazakov
2007-04-14 21:37                   ` vienapl
2007-04-15 14:03                     ` vienapl
2007-04-15 15:32                       ` Dmitry A. Kazakov
2007-04-18 18:47                       ` Tarjei T. Jensen
2007-04-12 11:34 ` gautier_niouzes
2007-04-12 14:24   ` vienapl
replies disabled

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