ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using C++ dll in Excel (https://www.excelbanter.com/excel-programming/399262-using-c-dll-excel.html)

BigBrother

Using C++ dll in Excel
 
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!

Jim Cone

Using C++ dll in Excel
 

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/lib...k9(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!

Ahasverus

Using C++ dll in Excel
 

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 :
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!


BigBrother

Using C++ dll in Excel
 
Ahasverus,

It works!!!! Thanks a lot!!! Whoever you are, you are a good person!!!:))

"Ahasverus" wrote:


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 :
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!



Vincent

Using C++ dll in Excel
 
Where do you check those options? Does your DLL work on computers that do not
have VS2005 installed?

Thanks
Vincent

"BigBrother" wrote:

Ahasverus,

It works!!!! Thanks a lot!!! Whoever you are, you are a good person!!!:))

"Ahasverus" wrote:


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 :
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!




All times are GMT +1. The time now is 07:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com