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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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?
evilrixSenior 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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
alexatsearidgeAuthor Commented:
You rule man!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.