+ Reply to Thread
Results 1 to 2 of 2

Thread: MFC application fails to start on target machine. Why?

  1. #1
    Junior Member
    Join Date
    Jun 2012

    MFC application fails to start on target machine. Why?

    I have a MFC application.

    On star-up, I get following message:

    "This application failed to start because mfc40.dll was not found. Re-installing the application may fix this problem."

    What is this?

    How can I resolve this issue?

  2. #2
    It seems that you are building your MFC application using "Use MFC in a Shared DLL" property.

    In VS IDE, go to Propperty->General->set "Use MFC in a Static Library".

    This avoids the requirement of the runtime MFC library to be present on the target machine and embeds the code with your application.

    This will make size of your executable more than using shared DLL mode.

    Below articles are worth reading:

+ Reply to Thread

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts