Numerous dependency problems loading MFC app.

Posted on 2009-12-19
Last Modified: 2013-12-14
Hi experts,

Hopefully this is something you've seen commonly.

I have to be able to port my MFC app (currently statically-linked to the MFC libraries) to various versions of Windows but have hit snags.  Windows XP seems to run it fine, this includes x86 and x64 versions (with IE 6 or 8 installed), but strangely not versions running IE 7.

In Vista Ultimate x86 (with IE 8) dependency-walker shows (not tested x64 yet):-

'Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module' and tehre is an hourglass and red 'window' icon next to 'IEFrame.DLL'.

Windows 7 x64 shows the same above error, but also the following 3 errors:-

- Red frame next to 'SHLWAPI.dll'
- hourglass and yellow question mark circle next to IESHIMS.dll (with error that it cannot find this file).
- hourglass / yellow question mark next to GPSVC.dll (with can't find file error).

Any ideas? I really need to get this working :(

Thanks a million if you can help,
Chris J

Question by:chrispauljarram
    LVL 3

    Expert Comment

    LVL 33

    Expert Comment

    You didn't mention the VS version.
    You need to check C Run-Time libraries in the project settings - it should be Multi-Threaded for the release configuration (I think, this the most important point).

    It makes sense to check the big values there such as _WIN32_WINNT, WINVER, WIN_32IE, etc.

    It is not clear which API you use and it is not necessary that these DLLs will be installed on each computer. So you may need to load these DLLs dynamically.

    If you have MFC in your app, it can be even impossible to run on all Windows versions. I hope you are not talking about Windows Me Something Enabled.
    LVL 33

    Accepted Solution

    SHLWAPI.dll, IEFrame.DLL. etc. - if you compile your app for 0x500 windows version and IE6 (it's all in stdafx.h) and you will set C Run-Time libraries to Multi-Thread (without DLL), I think, your app will work on the Windows versions you mentioned.

    Author Comment


    Have been off work for a while, will post more info on this shortly as there are still problems - thanks again for your help guys, hope you had a nice Christmas and happy new year!

    Chris J

    Author Comment

    Sorry for the delays, I will need more assistance with this later but yet again have been sidetracked.  We're in the throws of a major product release at the moment and the priorities are constantly changing - I'm going to award the points for help now and when I've had a closer look I'll post a more specific question.

    Thanks again,

    Author Closing Comment

    Closed until I have more information.
    LVL 3

    Expert Comment

    I had the same problem with those exact missing files. I am using VS 2008 C#. To fix the problem I changed the "Platform target: x86" rather than "any cpu". That fixed the problem for me.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
    Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now