comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <martin@krischik.com>
Subject: Re: DLLs with GNAT?
Date: Fri, 14 Jan 2005 09:57:04 +0100
Date: 2005-01-14T09:57:04+01:00	[thread overview]
Message-ID: <1881492.MXiprNB4H5@linux1.krischik.com> (raw)
In-Reply-To: 41E1465F.7B44DBC3@alfred-hilscher.de

Alfred Hilscher wrote:

> Hi,
> 
> I try to write a DLL with GNAT but I've got some problem.

Which Version of GNAT? Newer Versions of GNAT have improved Windows-DLL
support. Improved means easier here. I have created working DLLs with GNAT
3.15. Once you did everything in the instructions it works without
problems.

> I've done the example from the GNAT maual and I succeed to built and to
> call the DLL. Then I've tried to do some initialisation by adding the
> DllMain function. gnatdll shows a warning that DllMain is linked to
> DllMain@12, but windows seems _not_ to call the DllMain when loaing my
> dll.

Well I done that and it does work. However I stopped unsing DllMain - not
because of problems but for better Linux portability. 

> What's wrong? Please, can someone help me?

I haven't got enough informations to help you. Did you use Makefiles or
Projectfiles? GNAT Version etc. pp.

IF you know how to use cvs download:

:pserver:anonymous@cvs.sourceforge.net:/cvsroot/adacl/CUnicode

and look how I did it. If not you can browse online:

http://cvs.sourceforge.net/viewcvs.py/adacl/CUnicode

With Regards

Martin
-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com



  parent reply	other threads:[~2005-01-14  8:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-09 14:57 DLLs with GNAT? Alfred Hilscher
2005-01-12 21:51 ` Bernd Specht
2005-01-13  0:20   ` Jeff C
2005-01-14  8:57 ` Martin Krischik [this message]
2005-01-14 16:25   ` Alfred Hilscher
2005-01-14 16:51     ` Martin Krischik
replies disabled

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