Microsoft Visual C++5

I built a program that uses MFC, when running the .exe on another machine, it needed some DLLs. Isn't there a way to
"bundle" the exe and its needed DLLs, so I don't have to search for them manually ? Just copy them?
Who is Participating?
TriskelionConnect With a Mentor Commented:
It sounds as if you're acandidate for static link.
Project/Settings/[General Tab]/
Under Microsoft Foundation Classes, choose
"Use MFC in a static library"
Rebuild All.  Once you've done that, you won't need to copy the MS DLLs at all -- just the EXE.

If you really want to keep the DLLs or if you're using 3rd party DLLs, you will need to remember your dependencies (which DLLs are needed) and put them in some type of copy scheme -- either through a batch file or zip archive.
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.