MFC problem

This is a discussion on MFC problem within the Windows Programming forums, part of the Platform Specific Boards category; Hello I developed a MFC app, my problem is when i try run this app on another computer dosen't work. ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    39

    MFC problem

    Hello

    I developed a MFC app, my problem is when i try run this app on another computer dosen't work.


    On my computer runs perfectly.

    What could be the problem?
    Maybe some missing MFC dll....?

    The error returned is that the program do not run because incorrect configuration.

    Any suggestions?

    Thanks

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    You could compile a statically linked version. If that works on the other machine, then its a missing dll. Visual Studio 6.0 came with a tool called Depends that checks all dependencies for your program. If you don't have that you can get Dependency Walker : Dependency Walker (depends.exe) Home Page

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    39
    Hi man

    Thanks for helping

    How can i re compile using static link?

    Thanks again

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    It depends on what environment you are using. In Visual Studio 2003 select the menu item : Project->Properties. In the Configuration Properties->General->Use of MFC choose "Use MFC in a static library".

    I just looked and its the same for VS 2005. In Visual Studio 6, Project->Settings->General Tab, top combo box choose "Use MFC in a static library".

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    39
    Thanks man

    Change to static dll fixed the problem.


    Bye

  6. #6
    Registered User
    Join Date
    Mar 2009
    Posts
    48
    Quote Originally Posted by DaveH View Post
    You could compile a statically linked version. If that works on the other machine, then its a missing dll. Visual Studio 6.0 came with a tool called Depends that checks all dependencies for your program. If you don't have that you can get Dependency Walker : Dependency Walker (depends.exe) Home Page

    i also met the same problem before, hehe!

    but i never know Dependency Walker till now, i access the tool homepage URL, looks cool. :-)
    --------------------------------------------------------
    Newbie
    C/C#/C++
    swimming/cycling/running
    There is nothing more powerful than an idea.
    Except for an idea put into action.
    --------------------------------------------------------

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating and Empty MFC project in Visual Studio?
    By Swerve in forum Windows Programming
    Replies: 7
    Last Post: 11-01-2008, 05:43 PM
  2. Problem with MFC Wizard
    By okinrus in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2004, 05:09 PM
  3. ListView ImageList problem (MFC)
    By The Dog in forum Windows Programming
    Replies: 1
    Last Post: 09-12-2002, 01:08 PM
  4. MFC: Multi-threaded DLL Errors & Related Syntax :: C++
    By kuphryn in forum C++ Programming
    Replies: 3
    Last Post: 02-13-2002, 09:02 AM
  5. MFC is Challenging :: C++
    By kuphryn in forum C++ Programming
    Replies: 8
    Last Post: 02-05-2002, 01:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21