Re: Console App in one EXE file



Dear Hongye Sun,

Thank you for your new feedback on this.

One other point I need to clarify;

In your first reply about using private assemblies, you asked me to copy the two files Microsoft.VC90.CRT and Microsoft.VC90.MFC to the /bin folder.

I understand this, but I forgot to explain that my project is native C/C++, it does not use /clr.

Can I still use the private assemblies method for this type of project?

Thanks for your reply and great feedback, Gerry. I will forward your concern about documentation to relevant team.

I have the same opinion as yours: static linking is the only way to deploy only one file application.

Before using static linking, I would like to let you know its disadvantages first, so that you could get more information to make choice.

#1: Because linked libraries are built into exe file, the file become much larger.
#2: When DLL changed, you must re-link and re-deploy exe file to include the changes.
#3: If multiple processes are created on the exe file, they will not share the DLL file. Every process will keep a copy of the DLL in memory.

I am very glad to hear that my reply helps you. Hoping for more cooperation with you in future.

Regards,
Hongye Sun (hongyes@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
This posting is provided "AS IS" with no warranties, and confers no rights.



--
Gerry Hickman (London UK)
.



Relevant Pages

  • ATL/CRT deployed as private assemblies
    ... We'd like to deploy a COM server dll with the ATL and CRT libraries as ... the redistributables folders I included are in the same folder as the dll. ... private assemblies were deployed with the dll, ...
    (microsoft.public.vc.ide_general)
  • Have big problem with windows control dll
    ... One project that build a windows control dll ... In the windows control c-tor is there a call to a method in the class ... So in the project referense settings for the windows control I have a ... In the exe file c-tor I have a call to a method in the class library. ...
    (microsoft.public.dotnet.languages.csharp)
  • This must be a bug in C# when using user control DLL and class library DLL
    ... One project that build a user control dll called B ... One project that build a class library dll called C ... In the exe file c-tor I have a call to a method in the class library. ... the windows control because I can drag the windows control from the toolbox ...
    (microsoft.public.dotnet.general)
  • Re: ATL/CRT deployed as private assemblies
    ... You can fix the manifest by hand in notepad. ... Yes, you're correct, if you have private assemblies installed, and also ... We'd like to deploy a COM server dll with the ATL and CRT libraries as ... and the redistributables folders I included are in the same folder as ...
    (microsoft.public.vc.ide_general)
  • Re: ATL/CRT deployed as private assemblies
    ... The ATL redist folder that comes with VC2005 SP1 has a bug in it. ... You can fix the manifest by hand in notepad. ... Yes, you're correct, if you have private assemblies installed, and also ... We'd like to deploy a COM server dll with the ATL and CRT libraries as ...
    (microsoft.public.vc.ide_general)