| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <000301c69ff6$b3574510$ab01a8c0@loiscxf> |
| From: | "cxf" <chenxiaof AT is DOT iscas DOT ac DOT cn> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | How to load openssl library in VC |
| Date: | Wed, 5 Jul 2006 13:48:54 +0800 |
| MIME-Version: | 1.0 |
| X-Mailer: | Microsoft Outlook Express 6.00.2900.2869 |
| X-IsSubscribed: | yes |
| 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 |
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 int (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?
--
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 |