ADO depends on msvcr100.dll on Windows 7

Wei Lu 1 Reputation point
2019-11-18T22:57:37.717+00:00

I have an application that uses ADO to export table to Excel (97-2003 format). Running the application on Windows 7 machine, the following error message pop-up
“myApp.exe - System Error
The program can't start because MSVCR100.d11 is missing from your computer. Try reinstalling the program to fix this problem.”
In Windows 10, the same application can be run correctly without msvcr100.dll.
Could you please explain why it works on Windows 10 but not on Windows 7? How can I make it work on Windows 7 without msvcr100.dll?

Thanks!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,098 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2019-11-19T02:17:14.62+00:00

    You may just need to reinstall the C++ 2010 bits

    32Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
    http://www.microsoft.com/de-de/download/details.aspx?id=8328

    64Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
    http://www.microsoft.com/en-us/download/details.aspx?id=13523

    Any other issues with excel should be directed here

    https://social.msdn.microsoft.com/forums/en-us/home?forum=exceldev

    https://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-msoffice_custom

    (please don't forget to mark helpful replies as answer)

    0 comments No comments

  2. Sheng Jiang 蒋晟 206 Reputation points
    2019-11-19T04:51:18.493+00:00

    You can just add Visual C++ 2010 Redistributable to your setup program. Or ship Visual C++ DLLs in your application folder.

    Your Windows 10 box is most likely polluted by existing apps that depends on the Visual C++ 2010 Redistributable. You can't count on always being this lucky. The test procedure of your setup program should start from a clean Windows.

    0 comments No comments

  3. Wei Lu 1 Reputation point
    2019-11-19T16:51:11.447+00:00

    Thanks for the replies!

    Unfortunately, shipping with Visual C++ 2010 Redistributable is not an option for us, because our client vulnerability complains about it .

    For Windows 10, I have searched and renamed any Msvc*100.dll on the machine. There seems to be some difference.

    Another fact is that even after the message is popped, (click OK,) the export ran to completion with the correct output. Windows server 2008 has the same problem as Windows 7.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.