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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news3.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Translating a VB dll header to Ada Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH 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> <4tn69i24hl6w$.ns08mtjy7afs.dlg@40tude.net> <1176586627.612504.176470@n76g2000hsh.googlegroups.com> <1176645806.501593.6710@n76g2000hsh.googlegroups.com> Date: Sun, 15 Apr 2007 17:32:07 +0200 Message-ID: <10hkfy6e9d745.dsbrcyzu3el4$.dlg@40tude.net> NNTP-Posting-Date: 15 Apr 2007 17:31:11 CEST NNTP-Posting-Host: 75eeeeb7.newsspool1.arcor-online.net X-Trace: DXC=KnH=N8NBaAn9kIfcjg:0fdic==]BZ:afn4Fo<]lROoRaFl8W>\BH3YbN=gZ0LSBW:aDNcfSJ;bb[eIRnRBaCd=` X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:15044 Date: 2007-04-15T17:31:11+02:00 List-Id: On 15 Apr 2007 07:03:26 -0700, vienapl@hotmail.com wrote: > Sorry, I quoted the wrong message as the solution, changing the string > to "in out" instead of only "in" is what avoided the access violation, > as Philippe Bertin suggested. > > I don't seem to be able to get the CKHSendString function to work... That works with a different object though. Make sure that you don't mix them: type CTextHelper is new System.Address; type CKeyboardHelper is new System.Address; function CreateKeyboardHelper (name : access Interfaces.C.Char_Array) return CKeyboardHelper; procedure CKHSendString (helper : CKeyboardHelper; string : in out Interfaces.C.Char_Array); ... And I would really try to find some documentation on the DLL. If "in out" solved the problem, and they indeed change the string contents, you better know how exactly. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de