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!b75g2000hsg.googlegroups.com!not-for-mail From: vienapl@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Translating a VB dll header to Ada Date: 13 Apr 2007 08:25:29 -0700 Organization: http://groups.google.com Message-ID: <1176477928.918685.283010@b75g2000hsg.googlegroups.com> References: <1176320910.543255.74730@b75g2000hsg.googlegroups.com> <1176387466.525266.257670@n59g2000hsh.googlegroups.com> <1iye22k0o4obx$.naanhqgipkpf.dlg@40tude.net> NNTP-Posting-Host: 217.126.90.204 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1176477929 27982 127.0.0.1 (13 Apr 2007 15:25:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 13 Apr 2007 15:25:29 +0000 (UTC) In-Reply-To: <1iye22k0o4obx$.naanhqgipkpf.dlg@40tude.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.10 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b75g2000hsg.googlegroups.com; posting-host=217.126.90.204; posting-account=s-5BYg0AAACg_1u2WqCKSiLkbvMBVIC_ Xref: g2news1.google.com comp.lang.ada:14980 Date: 2007-04-13T08:25:29-07:00 List-Id: I posted this once already, but after several hours it seems to not show up, so I'm posting it again. Thank you for the parameter corrections, I edited them, but the problem persists. I'm quite sure I'm not using the API in a wrong manner, here is a C++ example of how it should be used: http://pastebin.ca/437367 and here a VB6 one: http://pastebin.ca/437369 . This thing is getting me really confused. Would some debug information help? Thank you, again, for your help. On Apr 12, 7:16 pm, "Dmitry A. Kazakov" wrote: > On 12 Apr 2007 07:17:46 -0700, vien...@hotmail.com wrote: > > > Although the header I'm trying to translate is in VB6, I guess that > > the dll itself wasn't written with VB, but C++ instead. I actually > > also have availible the C header for it (http://pastebin.ca/436394), > > In that header the functions you are using are all inlined. What is in the > DLL then? > > For 'void *' I would use System.Address rather than Interfaces.C.long, but > on a 32-bit machine they must be same. > > procedure CTHDeleteTextObject should have helper parameter. > > procedure CTHSetFont should have height as Interfaces.C.int. > > Otherwise it looks OK. > > Are you sure that you are using the thingy properly? > > -- > Regards, > Dmitry A. Kazakovhttp://www.dmitry-kazakov.de