How to detect VC++ 2008 redistributable?

前端 未结 13 1974
借酒劲吻你
借酒劲吻你 2020-12-01 02:00

Is there a Registry setting that I can look for to determine whether or not the Visual C++ redistributable is installed, whether standalone or as part of Visual Studio 2008?

13条回答
  •  孤城傲影
    2020-12-01 02:50

    Quick and dirty:

    if (LoadLibrary(L"msvcrt80.dll")!=NULL)
    {
      // it is installed
    }
    

    Loadlibrary will handle searching the paths for you.

提交回复
热议问题