Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

what is the difference between a dll and an exe?


I understand that exe's can be run directly and dll's need to be registered. But I want to no more in the context of Visual Studio .Net, What is the history of evolution of these?
0
qualtrace
Asked:
qualtrace
1 Solution
 
iboutchkineCommented:
First of all .NET DLLs are not COM DLLs and are not registered with regsvr32.exe.
Exe can run on its own, dll must be called from exe. Look at it as external sub or function, that you can reuse in different programs

.net assemblies are referenced from two places. #1 the folder in which the
application is stored and #2 the Global Assembly Cache or GAC.

If you're DLL is specialized for your application and unlikely to be useful
to other applications and deploy it into the folder where the executable is
to be stored. If your DLL is likely to be shared by several applications or
requires some strict version management then put it into the GAC.  The
assemblies placed into the global assembly cache must be strongly named.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now