Click here to Skip to main content
15,889,892 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a C++ dll using Visual Studio 2008 and call it in VBA (Excel 2003, Windows XP). The spreadsheet containing the VBA script works well on any machine with Visual Studio 2008. But it does not work for machines without Visual Studio. Does any know what causes the difference? Thanks.
Posted

What error message you get?

The issue might very well be that the VC++ runtime is not installed on the machines without VS2008. You can download the runtime from here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en[^]
 
Share this answer
 
I got the error:

Run-time error '48':
File not found:

I tried to regsiter the DLL using regsvr fullpath\some.dll and failed.

LoadLibrary("fullpath\some.dll") failed. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

This works well on my computer because it has VS2008. But failed for other machines without CS2008. I will try to install run-time library on one computer.

I installed VC2008 redistributable package. Still got the same problem.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900