Thanks for posting in the group.
Our reasoning for making msvcr70.dll separate from msvcrt.dllwas to help
protect you against DLL hell. Since msvcr70.dll is not a known system DLL,
the system will use the version distributed with you application instead of
the version shipped with the operating system. Overall, this helps you
isolate your testing environment.
Obviously you cannot redistribute msvcrt.dll since it is not shipped with
Visual Studio. So it makes sense that you're left with msvcr70.dll.
Besides, the CRT does get serviced fairly frequently, and it does get new
features. Many of these features certainly aren't
flashy, but they address needs of critical applications.
So we recommend you to still redistribute msvcr70.dll.
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "mat" <a...@a.com>
!Sender: "mat" <a...@a.com>
!Subject: msvcr70.dl -> msvcrt.dll
!Date: Tue, 7 Oct 2003 10:25:17 -0700
!Lines: 4
!Message-ID: <0c1101c38cf7$f9bd0130$a001...@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!Thread-Index: AcOM9/m92+OA8Kh7SY+60s8OmLn0yg==
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Newsgroups: microsoft.public.vsnet.general
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.general:13347
!NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
!X-Tomcat-NG: microsoft.public.vsnet.general
!
!Is it possible to link with msvcrt.dll and not msvcr70.dll
!in VC++7.0 ? because i only want my exe at the end and
!not want to redistribute a dll.
!Thanks.
!
In fact i understand the reason why the new version is in
a different file, with a different name, as you said it
helps developers about the DLL hell.
but i think it would have been practical to put an option
in the IDE to let the developer use msvcrt.dll instead
of the new version (but link to the new version by
default), for application which are not critical (my app
is a small game) and which not use the last CRT
improvements (or maybe the old CRT lib is buggy but i
don't think so).
i'm constrained to use MSVC++6.0 to do that :(
BTW my app is linked with comctl32.dll which is linked
with oleacc.dll which is linked with msvcp60.dll (which
export the class Lockit) which is not a known DLL.
it doesn't seem to be a problem since even if msvcp60.dll
is not present my app works, but is it a issue i must
treat ? (ie redistribute also msvcp60.dll)
thanks a lot.
mathieu
Thanks for the quick and detailed response.
If you build with VC7, you may be dependent on msvcr70.dll and/or
msvcp70.dll. If you are dependent on msvcr70.dll and/or msvcp70.dll, you
need to ship them. No OS carries msvcr70.dll/msvcp70.dll for you. This is a
new feature introduced in VC 7.0.
Under your situation, I totally understand why you want to use msvcrt.dll.
However, putting it into IDE is not useful. The reason is that VS.NET IDE
uses VC 7.0 linker internally. Using VC7 linker to link with VC6 lib is
not supported. That is also another important reason of why your met this
problem. Please post here if there is any question on it.
For the msvcp60.dll, if you test it on the machine and confirm that your
application doesn't need it, surely you could redistribute your application
without it.
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "mat" <a...@a.com>
!Sender: "mat" <a...@a.com>
!References: <0c1101c38cf7$f9bd0130$a001...@phx.gbl>
<b8YqWmVj...@cpmsftngxa06.phx.gbl>
!Subject: RE: msvcr70.dl -> msvcrt.dll
!Date: Wed, 8 Oct 2003 05:57:45 -0700
!Lines: 26
!Message-ID: <0f4801c38d9b$c4993c90$a101...@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcONm8SZiMICawtGSYW+jpKUKjA1JQ==
!Newsgroups: microsoft.public.vsnet.general
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.general:13384
!NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
!X-Tomcat-NG: microsoft.public.vsnet.general
!
!Hello,
!thank you for your answer !
!
!In fact i understand the reason why the new version is in
!a different file, with a different name, as you said it
!helps developers about the DLL hell.
!
!but i think it would have been practical to put an option
!in the IDE to let the developer use msvcrt.dll instead
!of the new version (but link to the new version by
!default), for application which are not critical (my app
!is a small game) and which not use the last CRT
!improvements (or maybe the old CRT lib is buggy but i
!don't think so).
!i'm constrained to use MSVC++6.0 to do that :(
!
!BTW my app is linked with comctl32.dll which is linked
!with oleacc.dll which is linked with msvcp60.dll (which
!export the class Lockit) which is not a known DLL.
!it doesn't seem to be a problem since even if msvcp60.dll
!is not present my app works, but is it a issue i must
!treat ? (ie redistribute also msvcp60.dll)
!
!thanks a lot.
!mathieu
!
!
In fact it's not a really big problem for me, as i work
in VC++7.0 and then compile the releases with VC++6.0.
It was just to have some informations about that.
Thanks very much.
mathieu
You are welcome. I am glad to be of assistance.
Thanks for participating the community.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "mat" <a...@a.com>
!Sender: "mat" <a...@a.com>
!References: <0c1101c38cf7$f9bd0130$a001...@phx.gbl>
<b8YqWmVj...@cpmsftngxa06.phx.gbl>
<0f4801c38d9b$c4993c90$a101...@phx.gbl>
<zxEi1Ih...@cpmsftngxa06.phx.gbl>
!Subject: RE: msvcr70.dl -> msvcrt.dll
!Date: Fri, 10 Oct 2003 07:55:10 -0700
!Lines: 9
!Message-ID: <273b601c38f3e$80a97780$a601...@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcOPPoCp5V1qygBPTg2kOl3ndp1zWQ==
!Newsgroups: microsoft.public.vsnet.general
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.general:13492
!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!X-Tomcat-NG: microsoft.public.vsnet.general
!
!Thanks a lot for your anwser.
!
!In fact it's not a really big problem for me, as i work
!in VC++7.0 and then compile the releases with VC++6.0.
!It was just to have some informations about that.
!
!Thanks very much.
!mathieu
!
!