Using C++ dll in Excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I built a .dll in VS2005/C++ for MS-Excel. It works fine on my PC and
other PC's that have the same VS2005/C++. It does not work on PCs that do
not have VS2005/C++ or even on my PC when I uninstall VS2005/C++. Any
suggestions on how to fix this?

Thanks a ton!
 
This is probably not the newsgroup to answer your question.
Most of the programming solutions provided here are done in VBA
..
My knowledge of VS2005/C++ is limited to the fact the Schwab loaded a
VS2005/C++ Redistributable on my machine when I installed one of their packages.
If they can do it, you probably can to. However, I doubt if many Excel users
would appreciate that being dumped on them (5.2MB).

There appears to much information at this link covering deployment of VS2005/C++;
maybe it will be some help to you ( I don't understand it)...
http://msdn2.microsoft.com/en-us/library/zebw5zk9(VS.80).aspx
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"BigBrother"
wrote in message
Hi,
I built a .dll in VS2005/C++ for MS-Excel. It works fine on my PC and
other PC's that have the same VS2005/C++. It does not work on PCs that do
not have VS2005/C++ or even on my PC when I uninstall VS2005/C++. Any
suggestions on how to fix this?
Thanks a ton!
 
Hello,

Try to compile your DLL with the /Mt (release mode) or /Mtd (debug mode) option.
This will link your DLL statically with the runtime C++ library. Otherwise,
the DLL can't work if the runtime MSVCR80.dll is not present on the PC.

HTH

BigBrother a écrit :
 
Ahasverus,

It works!!!! Thanks a lot!!! Whoever you are, you are a good person!!!:))
 
Where do you check those options? Does your DLL work on computers that do not
have VS2005 installed?

Thanks
Vincent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top