Link to home
Start Free TrialLog in
Avatar of me8873
me8873

asked on

MSVCP60.dll in ATL EXE

Hi all.

I have created an ATL COM EXE server that do not use MFC at all. But when I have tried to instell it in a computer that do not have MFC installed at it, I'm getting the error that the dynamic link library MSVCP60.dll can't be found ...

Why this dll is used by the EXE?
And how can I remove that dependency?

Thanks Rami.
Avatar of Pacman
Pacman
Flag of Germany image

Standard C++ Runtime Library ?
Avatar of DanRollins
This nasty thing is called in when you use cout, cin and perhaps other stream-related junk.  You may be able to link in a static version of the library, but odds are, if you have a COM object, you just left some debugging stuff in by accident.  You can use printf, etc instead.

-- Dan
Avatar of me8873
me8873

ASKER

Thanks Pacman and Dan

I didn't use cout at all.
Do you think that the ATL automatic code generated are using the Standard C++ Runtime Library ?

Rami
See:

INFO: What Are the C/C++ Libraries My Program Would Link With?
ID: Q154753

http://support.microsoft.com/support/kb/articles/Q154/7/53.asp

-- Dan
In Project/Settings/C++/Code Generation, select a non-DLL version of the runtime libs

-- Dan
Avatar of me8873

ASKER

> In Project/Settings/C++/Code Generation, select a non-
> DLL version of the runtime libs

Does communicating (in DCOM) between two COM EXE that using diffret CRTs can make any problems?

We are (all the programers in our company) all using Multithreaded DLL as CRT becouse some of us had problems.

Thanks Rami
>> all using Multithreaded DLL as CRT...

Then you should not mind distributing MSVCP60.dll with your program... everybody who runs your code will already have it.  

So what's the fuss?

-- Dan
Your program requires because you use STL.
(You must distribute MSVCP60.DLL with your project. For example, on clean Win95 you can not find this dll)
You can use STLPort instead, in this case all STL code will be linked to your program.
hi me8873,
Do you have any additional questions?  Do any comments need clarification?

-- Dan
ASKER CERTIFIED SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Comment from DanRollins accepted as answer.

Thank you
Computer101
Community Support Moderator