Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3E8805AA.9060000@niles.de>
Date: Mon, 31 Mar 2003 11:08:58 +0200
From: "Mader, Alexander" <alexander.mader@niles.de>
Organization: NILES Werkzeugmaschinen GmbH
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.1) Gecko/20020826
X-Accept-Language: de-at, de, en-us, en
MIME-Version: 1.0
To: Massimiliano Mirra <mmirra@libero.it>
Cc: cygwin@cygwin.com
Subject: Re: Building DLLs to be loaded from Visual Basic
References: <87pto76fcf.fsf@prism.localnet>
X-Enigmail-Version: 0.65.2.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS snapshot-20011031

Hallo,

Massimiliano Mirra schrieb:
> My questions:
> 
> - is anybody today successfully building DLLs with cygwin (not
>   mingw32) and loading them from Visual Basic (or other languages)?

I have to provide DLLs for VB and do so by using Cygwin but with 
-mnocygwin, which is more or less using mingw32. Anyway, I proceed this 
way in order to limit the library dependencies to native MS ones.

> - is documentation about the process available?

I have no idea. But I know about some problems regading VB in connection 
with C _not_ with Cygwin. So, compiling with gcc-2 it is usefull to use 
-fnative-struct (no more available/nessesary in gcc). Because of the VB-
Structure-Conventions it could be nessesary to use -fpack-struct 
together with dummy elements in the structure in question. The solution 
to problems like this I found in the MS database.

Hope this helps,

Alexander.
-- 
Alexander Mader <alexander.mader@niles.de>	Fon: +49-30-93033-636
NILES Werkzeugmaschinen GmbH			Fax: +49-30-93033-603
				www.niles.de



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

