Ask a questionAsk a question
 

AnswerVC++ Redistributable

  • Wednesday, July 01, 2009 10:38 PMThe Captain 22 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have an application that I had been developing in Visual Studio 2005 for some time. The application installed and ran just fine without including any redistributables. I recently converted it to Visual Studio 2008 and it still worked fine without needing anything else. Then I ran into some problems getting it to register a couple dll's after the build so I went a head and just started a new solution in 2008 and re-created it. Now for some reason it needs the vc++ 2008 redistributable even though no code changed and I set everything up the same way. What would cause it to do this? I'm sure there is something that I missed in the settings or something when I re made the solution that is causing it. I guess its not a big deal but I would be able to slim up my installer if I didn't have to include the redistributable.

Answers

  • Thursday, July 02, 2009 5:11 PMBrian MuthMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Sometimes during the upgrade, the compiler switches get changed. Review your compiler settings and ensure that you are using the /MT switch for all your modules.

All Replies

  • Thursday, July 02, 2009 2:28 AMScott McPhillipsMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Use the Depends.exe dependency walker tool.  Open your exe (and dlls) with it to find out what dlls they depend on.  There are settings in the project properties that let you static link some of the libraries.

     

  • Thursday, July 02, 2009 5:01 PMThe Captain 22 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    How do I tell which ones are from the redistributable?
  • Thursday, July 02, 2009 5:11 PMBrian MuthMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Sometimes during the upgrade, the compiler switches get changed. Review your compiler settings and ensure that you are using the /MT switch for all your modules.

  • Tuesday, July 07, 2009 1:13 PMThe Captain 22 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    That was it, I guess I missed on one of my Dll projects that it got switched to /MD