delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <449BA22D.923A1804@dessent.net> |
Date: | Fri, 23 Jun 2006 01:11:25 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: Load dll in VC |
References: | <000501c69686$6e315a30$ab01a8c0 AT loiscxf> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
cxf wrote: > I have a standard dll file CYGCRYPTO-0.9.8.DLL. Using the VC tool > "depends",I can see that this dll file depends on cygwin1.dll.when I > load the file CYGCRYPTO-0.9.8.DLL in VC,the program is stoped,I don't > know why.I do the following in VC: > LoadLibrary("CYGCRYPTO-0.9.8.DLL"); > (cygwin1.dll is under the directory where cygcrypto-0.9.8 resides > in.) You really should use a mingw-compiled openssl instead. Trying to dynamically load cygwin1.dll is not straightforward. (Even though you are loading cygcrypto.dll this will cause cygwin1.dll to load so you have to follow the same procedure.) You'll need to ensure that there is scratch space at the bottom of the stack, and you'll have to initialize the DLL with cygwin_dll_init() once loaded. See the "cygload" source and 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |