comp.lang.ada
 help / color / mirror / Atom feed
* GNAT/gcc 3.4.5 and Windows DLLs (newbie)
@ 2007-11-15  8:27 axtens
  2007-11-15  9:00 ` Martin Krischik
  2007-11-15  9:17 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 3+ messages in thread
From: axtens @ 2007-11-15  8:27 UTC (permalink / raw)


Hello everyone.

Despite being a newbie to Ada, I find myself having to start out in
the deep end.

Has anything improved in the area of writing DLLs in Ada that can be
accessed from Visual Basic 6?

I've tried out the code at http://www.tertullian.org/rpearse/ada_dll/ada_dll.htm#GNAT_compiling
and have proved to myself that, yes, you can call the code from C++
(but that's not because you're doing it via the DLL mechanism, but
rather via the LIB) and you can't call from VB6 (because it is trying
to use the DLL interface rather than the LIB one).

Is there any point in upgrading to gcc 4?

uname -a --> MINGW32_NT-5.1 XI 1.0.10(0.46/3/2) 2004-03-15 07:17 i686
unknown

Kind regards,
Bruce.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNAT/gcc 3.4.5 and Windows DLLs (newbie)
  2007-11-15  8:27 GNAT/gcc 3.4.5 and Windows DLLs (newbie) axtens
@ 2007-11-15  9:00 ` Martin Krischik
  2007-11-15  9:17 ` Dmitry A. Kazakov
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Krischik @ 2007-11-15  9:00 UTC (permalink / raw)


axtens schrieb:

> Is there any point in upgrading to gcc 4?

Yes - the project manager has been improved significantly and creating
stand alone libs is now a lot easier.

You might want to have a look at my 4NT / Take Command plug-in:

http://code.google.com/p/mkutils/

while not for VB the techniques needed are similar. Have a look at .gpr
files - no need for a dummy interface file any more - no need for a
DLLMain function any more.

Martin

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNAT/gcc 3.4.5 and Windows DLLs (newbie)
  2007-11-15  8:27 GNAT/gcc 3.4.5 and Windows DLLs (newbie) axtens
  2007-11-15  9:00 ` Martin Krischik
@ 2007-11-15  9:17 ` Dmitry A. Kazakov
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry A. Kazakov @ 2007-11-15  9:17 UTC (permalink / raw)


On Thu, 15 Nov 2007 00:27:56 -0800 (PST), axtens wrote:

> Has anything improved in the area of writing DLLs in Ada that can be
> accessed from Visual Basic 6?

Hmm, that isn't Ada-specific problem. I remotely remember that there were
some issues of using import libraries with VB. Was it 6? I don't remember
the details. I guess you should use stdcall call convention and then mangle
names of DLL entry points in some way.

But it isn't Ada or GCC issue. I would need to do the same with other
compilers too.

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-15  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-15  8:27 GNAT/gcc 3.4.5 and Windows DLLs (newbie) axtens
2007-11-15  9:00 ` Martin Krischik
2007-11-15  9:17 ` Dmitry A. Kazakov

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