dll question

This is a discussion on dll question within the C++ Programming forums, part of the General Programming Boards category; Hi
In my programm I use an external dll (OpenSSL).
In the property pages under Configuration Properties-Linker-Input I put ssleay32.lib ...

dll question

Hi

In my programm I use an external dll (OpenSSL).
In the property pages under Configuration Properties-Linker-Input I put ssleay32.lib and libeay32.lib in the Additional Dependencies. And in my programm I use some include lines to include the header files I need from the Open SSL.

In my programm the user has an option to choose between "use SSL" or "don't use SSL".

My problem is now lets say the user hasen't got these OpenSSL dlls, then my programm should work without SSL. But if these dlls are not in the system32 directory the programm don't start. No error message nothing it just didn't start. Is there a possibility to start my programm even if these dlls are not available (then without SSL support). I know from some programms that it must be possible but I don't know how.

And the second thing is I use another dll to decrypt some strings in my programm (Cryptlib project). This is a dll too like the SSL dlls but when I run my programm you don't need this dll. It seems that all functions of the Cryptlib dll get inserted to my programm, but the SSL functions I use are just linked to the dll?

It would be great when the SSL stuff get inserted in my programm like the Cryptlib things, or if that isn't possible that my programm run nevertheless even if the SSL dlls are not available.