This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to load openssl library in VC


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]