CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2003
    Posts
    347

    shipping an MFC application

    Hello all

    I have written an MFC apllication, dialog based and build in release mode.now am sending this to my friend.Do i need to send any other
    DLL's with my app?he doesnt have VC++ installed on his PC.


    Thanks in Advance.

  2. #2
    Join Date
    Oct 2002
    Location
    Italy
    Posts
    324

    Re: shipping an MFC application

    Just make sure you're linking to the static MFC libraries (project settings dialog).
    If you use dynamic linking you'll need to ship both MFC and MSVCRT dlls.

    A nice trick would be to use dependency walker to check for all dependent modules in your app: http://www.dependencywalker.com
    Regards,
    Marco Era
    www.marcoera.com

    Latest post on my blog: Back to the Amiga's times

  3. #3
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815

    Re: shipping an MFC application

    Quote Originally Posted by puzzolino
    If you use dynamic linking you'll need to ship both MFC and MSVCRT dlls.
    Well, that's not entirely true: Since Win95 at least, the VC and MFC runtime libraries are already installed with the system - no need to ship them separately.

  4. #4
    Join Date
    Oct 2002
    Location
    Italy
    Posts
    324

    Smile Re: shipping an MFC application

    Quote Originally Posted by gstercken
    Well, that's not entirely true: Since Win95 at least, the VC and MFC runtime libraries are already installed with the system - no need to ship them separately.
    Well, you are assuming spicy_kid2000 has built his code on Visual C++ 6.
    VC 7 updated both MFC and MSVCRT dlls so his program won't work if he doesn't ship them.
    Also in the case of Win95/98/NT I'd not rely on those DLLs being present or up-to-date if I used MFC; anyway I'm not been using MFC in my own programs for last two years...
    Regards,
    Marco Era
    www.marcoera.com

    Latest post on my blog: Back to the Amiga's times

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured