How can I statically link msado15.dll in my exe

Hi all,

I'm distributing a C++ MFC app with 4 dlls.  What I want is to statically link all 4 dlls into the exe so I can distribute only the exe.  All are third party dlls the most important being: "msado15"
Who is Participating?
evilrixConnect With a Mentor Senior Software Engineer (Avast)Commented:
This is the DLL search path order...

1. The directory where the executable module for the current process is located.
2. The current directory.
3. The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
4. The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
5. The directories listed in the PATH environment variable

Assuming the DLL isn't an ActiveX control, rather just a normal DLL that plan should work.
evilrixSenior Software Engineer (Avast)Commented:
You cannot statically link a DLL, it is a Dynamic Link Library. It is designed to be loaded either explicitly or implicitly at runtime.
evilrixSenior Software Engineer (Avast)Commented:
alexatsearidgeAuthor Commented:
The situation is that my version of msado is older than my clients.  When I install my application I register my version over his.  This is no longer viable.  My concern now is that if I just use his version I will get unexpected results.  I know that my application works with version 1, so I want to release my application with version 1.  Can I keep the dll in the same folder as my exe and reference it locally without having to register it?
alexatsearidgeAuthor Commented:
You rule man!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.