question

WeiLu-2095 avatar image
0 Votes"
WeiLu-2095 asked ·

ADO depends on msvcr100.dll on Windows 7

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-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

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)



·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

jiangshengvc avatar image
0 Votes"
jiangshengvc answered ·

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.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

WeiLu-2095 avatar image
0 Votes"
WeiLu-2095 answered ·

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.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Any issues with the 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)


2 Votes 2 ·