comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Translating a VB dll header to Ada
Date: Fri, 13 Apr 2007 18:55:54 +0200
Date: 2007-04-13T18:55:02+02:00	[thread overview]
Message-ID: <ug8k3kafcidq$.1mr7jrlbrus59$.dlg@40tude.net> (raw)
In-Reply-To: 1176477928.918685.283010@b75g2000hsg.googlegroups.com

On 13 Apr 2007 08:25:29 -0700, vienapl@hotmail.com wrote:

> 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 .

Well, C++ uses the class instead of plain functions.

It is possible to make bindings to C++ classes. GNAT has pragmas for that.

> This thing is getting me really confused. Would some debug information
> help?

Yes. You can try to determine where exactly it crashes by inspecting the
stack. You can also check the stack frames to ensure that the call
convention is respected.

But first, is it CTHSetLocation which makes troubles or other procedures as
well? If you commented that call out, would the rest crash?

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2007-04-13 16:55 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 [this message]
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
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