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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,529481ac2d77d9f6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!p77g2000hsh.googlegroups.com!not-for-mail From: "Philippe Bertin" Newsgroups: comp.lang.ada Subject: Re: Translating a VB dll header to Ada Date: 14 Apr 2007 07:01:48 -0700 Organization: http://groups.google.com Message-ID: <1176559308.535540.3560@p77g2000hsh.googlegroups.com> References: <1176320910.543255.74730@b75g2000hsg.googlegroups.com> <1176387466.525266.257670@n59g2000hsh.googlegroups.com> <1iye22k0o4obx$.naanhqgipkpf.dlg@40tude.net> <1176477928.918685.283010@b75g2000hsg.googlegroups.com> <1176512718.219589.63270@w1g2000hsg.googlegroups.com> <13poyps5u5uo8$.rzkmixdov6tr.dlg@40tude.net> <1176552993.629014.137900@y80g2000hsf.googlegroups.com> NNTP-Posting-Host: 213.224.150.133 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1176559308 9207 127.0.0.1 (14 Apr 2007 14:01:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 14 Apr 2007 14:01:48 +0000 (UTC) In-Reply-To: <1176552993.629014.137900@y80g2000hsf.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050715 Firefox/1.0.6 SUSE/1.0.6-16,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p77g2000hsh.googlegroups.com; posting-host=213.224.150.133; posting-account=Lwp90A0AAACFPCXxenE5d4DXfE23834K Xref: g2news1.google.com comp.lang.ada:15011 Date: 2007-04-14T07:01:48-07:00 List-Id: 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