Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 30 Jun 2005 17:26:43 -0700 (PDT)
Message-Id: <200507010026.j610Qhwa026567@citheronia.ucdavis.edu>
To: Brian Dessent <brian@dessent.net>, cygwin@cygwin.com
Subject: Re: Dynamically load a shared lib created using gcc/Cygwin
From: "Yu-Cheng Chou" <cycchou@ucdavis.edu>
X-Errors-To: cycchou@magenta.ucdavis.edu
X-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
X-IsSubscribed: yes


mylib.dll was created using gcc/cygwin based on some libraries that were 
also built using gcc/cygwin and CANNOT be re-built by other compilers.
I have to, and need only to load mylib.dll at run-time by function 
LoadLibrary("mylib.dll") 
in an applicaiton that was built by Visual C++ or .NET.
When I ran this application in Windows XP, it hung at LoadLibrary
("mylib.dll").

Sorry about bothering you again


> > I made a mistake in the previous reply.
> > Here I state my question again.
> > 
> > mylib.dll was built using gcc/cygwin based on some library that
> > might depends on cygwin1.dll.
> > I don't want to load cygwin1.dll explicitly, but I do need to load
> > mylib.dll dynamically at run-time in an application which was built by
> > Visual C++ or .NET.
> 
> I don't think it matters.  If you expect at any point in time to load
> cygwin1.dll into your process, either directly or by loading something
> that depends on it, then you need to initialize and load it as stated in
> the FAQ.
> 
> Brian


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

