The dll has to be in the path to be loaded when it is requested - you can do this by putting it in the same directory as the exe and specifying that directory as the start up directory in a short cut to start your program. You can modify the path environment using the environment variables button on the control panel System option - advanced tab. You have to be administrator to change the system variables. Be careful to append to any existing list. If there is not a user path, you can add it the variable and the vallue. Lastly, you can move the dll into the Windows or Windows\system32 directory - the other two choices are much to be preferred. In Vista or Windows 7 you have to have administrative rights to do this. Using a dll means that you do not have to necessarily update your application when the next revision comes (unless it is directly affected by the changes between revisions).
Carter Carter Browne CBCS cbro...@cbcs-usa.com 781-721-2890 Dave Thompson wrote: >> From: owner-openssl-us...@openssl.org On Behalf Of yhilbert >> Sent: Tuesday, 01 December, 2009 05:26 >> > > >> Hi I am new to Visual Studio and OpenSSL but how do I ensure >> the library >> libeay32.dll is merged into my console application so it >> doesnt complain at >> runtime. For example I have following simple program >> >> > DLLs aren't ever "merged" into an EXE. They are loaded > at runtime. That's what "Dynamic Link" means. > > If you want the library code statically linked into your EXE, > use the static linking libraries. > > If you want to use DLLs, you must either distribute the DLLs > or require the user system(s) to get them another way. > This has been true of Windows apps since forever, > and it is my understanding that common installer tools > like MSI and InstallShield handle such 'related' DLLs, > but I don't know details because I use static linking. > > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org > > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org