delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44ABBB8E.6020800@cygwin.com> |
Date: | Wed, 05 Jul 2006 09:15:58 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: How to load openssl library in VC |
References: | <002601c69ff7$3e2776b0$ab01a8c0 AT loiscxf> |
In-Reply-To: | <002601c69ff7$3e2776b0$ab01a8c0@loiscxf> |
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: > Hi,all: > I want load the library cygcrypto-0.9.8.dll dynamicly,so I write the > program following the Cgywin FAQ "How do I use cygwin1.dll with Visual > Studio or MinGW?" The program is: > > > typedef void (FAR __cdecl *init)(); > > init x; > BYTE buffer[60000]; > HINSTANCE dllInstance; > HINSTANCE sslInstance; > dllInstance=LoadLibrary("cygwin1.dll"); > x = (init)GetProcAddress(dllInstance, "cygwin_dll_init"); > init(); > sslInstance=LoadLibrary("cygcrypto-0.9.8.dll"); > > > But the program can not continue when executing the code > "sslInstance=LoadLibrary("cygcrypto-0.9.8.dll");" what happened? what is > this meaning "Make sure you have 4K of scratch space at the bottom of > your stack"? how to make sure the 4K of scratch space at the bottom of > your stack in VC? You don't need to send the same message to the list twice. Once is plenty. Did you read and follow the entire FAQ entry, including the bit about "read winsup/cygwin/how-cygtls-works.txt and the sample code in winsup/testsuite/cygload to understand how this works"? If the "short version" listed in the FAQ is not enough information for you to get it to work, then you should look at the more detailed information and example in the source. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 |