Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


DLL Problem.

Posted on 1999-06-26
Medium Priority
Last Modified: 2013-11-20
I have writen a Windows Application, works well and stuff but I have a problem when it runs. Every time I install the application on a machine without Visual C++, it tells me this stuff about MFC "dll" files. How can I make it work without it requiring the DLLs'.
Question by:billyh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1308089
Technique 1.
Find the DLLs it wants and copy them onto the target machine with the other DLLs.

Technique 2.
Change your project to have MFC static link.
This will remove the need to keep up with the DLLs, but make your EXE a little larger.

I always use static link.
LVL 23

Expert Comment

ID: 1308090
Two optins...
1. Copy the required DLLs to the machine
2. When you compile your application, link the MFC dlls statically. But this will make your executable file huge.

Author Comment

ID: 1308091
Thanx Triskelion technique 2 seems like the choice for me, only one thing, how do I link the DLLs statically before I compile my project.

Answer this and the points are yours.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 15

Accepted Solution

Tommy Hui earned 360 total points
ID: 1308092
Go to Project | Settings.

A property sheet called Project Settings will open. Switch to the General page (it should already be there). Look at the middle right hand side. Look for Microsoft Foundation Classes. It is currently "Use MFC in a Shared DLL". Change it to "Use MFC in a static library". Press OK. Then do a full rebuild by using Build | Rebuild All.

Expert Comment

ID: 1308093
The DLLs are not what is acutally linked.  LIB files (contain mostly the same information as the DLLs) are statically linked.  The compiler will find them automatically if you have your IDE or environment settings configured properly.  Follow the suggestion made by thui and it'll work.

Expert Comment

ID: 1308094
if the option to statically link is not there, then it's because you don't have professional or enterprise edition of vc and you'll be stuck lugging the dlls around.

Author Comment

ID: 2057581
Sorry for the long delay, but you suggestion has definitly helped me.


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question