Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2007, 04:14 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default dll and exe

hello every one

i do not know about the difference between dll and exe file
(created in .net)
do you tell me about this

 
Old April 1st, 2007, 09:29 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

DLL and EXE files are both .NET assemblies that contain classes. However, the exe file is directly executable and has an execution entry point. Conversely, you can't directly execute any code that lives in just a DLL file.

A DLL file is a class assembly that is referenced by some other assembly (either another DLL or an exe). The assembly contains classes that will be used by the code that references it.

An exe will be a windows form application, a console application or a windows service. You can launch any of these from windows thru a command prompt, windows explorer or from the services control.

An ASP.NET application functions a bit differently. It only exists as one or more DLL files (technically, it can even exist as NO dll files, just pages and code files that are dynamically compiled at runtime). This is because the main program that runs an ASP.NET application is the ASP.NET worker process that gets executed by the web server (IIS). The worker process is actually the program that processes the ASP.NET pages. It loads the classes that are in your ASP.NET application assembly DLLs.

I remember how confusing this was for me when I first started learning about .NET. Hopefully this clarifies things for you a bit.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a ActiveX DLL in a Standard EXE earendall74 Beginning VB 6 2 November 24th, 2004 01:39 PM
PLEASE HELP: exe ==> DLL stalker C# 3 November 4th, 2004 06:16 PM
IS IT DLL OR EXE? augustine General .NET 2 October 4th, 2004 12:43 AM
Custom DLL can't call an EXE? eamonn_ryan C++ Programming 0 September 26th, 2003 12:20 PM
ActiveX Exe and Dll Vasudevan VB How-To 1 September 26th, 2003 07:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.