Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default 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!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default 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!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default 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!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"