Screencast: Static link to the C-Runtime to prevent vcredist and overcome “Application configuration” problems

Here is a short screencast which shows how to adjust the project settings to link against the static C-runtime (CRT).

This prevents that you must ship the CRT-DLLs with your application. Your application just works after copying the exe to the target computer.

This is a “german” screencast:

http://www.kalmbach-software.de/screencasts/VC2008EE-StaticLinkCRT/

10 Responses to “Screencast: Static link to the C-Runtime to prevent vcredist and overcome “Application configuration” problems”

  1. Jochen Kalmbach’s Blog » Blog Archive » Howto: Deploy VC2008 apps without installing vcredist_x86.exe Says:

    […] easiest way to overcome the problem is to link static against the CRT/MFC. But in some scenarios this is not an option and not […]

  2. David Manthey Says:

    Thank you, sir. Your screencast quickly gave me the answer to this. I appreciate it.

  3. John Says:

    The method shown on the screen cast for static linking doesn’t work for CLR applications. How do I statically link a /clr application?

    Thanks

  4. jkalmbach Says:

    It is explaind in the screencast, that it does not work if you have a /clr application!
    Conclusion: You can’t static link to the CRT if you have VS2005 or later (ir works with VS2002 and 2003).

  5. John Says:

    Thanks for the quick reply.

    Bummer about static linking. I’ll give your method a shot. Trying to deploy on Vista, XP, and the FDDC.

    Cheers

  6. Duncan Smart Says:

    Thanks for this Jochen, even though my German in non-existent, I just needed to see which option it was :-)

    Vielen Dank!

  7. Fofo Says:

    Danke!!!
    Jetzt ist mein Herzinfarkt-Risiko wieder auf normal!

  8. Jochen Kalmbach’s Blog » Blog Archive » Deployment of VC2008 apps without installing anything Says:

    […] Statically link to the CRT/MFC […]

  9. Al Dimond Says:

    Why post a screencast when you could explain it in words? Words are a lot easier to use!

  10. jkalmbach Says:

    Hi Al!

    I have explaint this about 3000 times via words… then I got about 2000 responses that it does not work or they cannot find it… the I responded again, that you should *look* exactly what I have written… After about 1000 responses again, I made the 2 min screencast….

    Maybe my words are not able to express, what screencasts can ;)

Leave a Reply