Groups | Blog | Home
all groups > dotnet academic > august 2007 >

dotnet academic : Question regards why use ".exe" instead of ".dll"


winlin
8/27/2007 7:54:00 PM
Hello
Why would someone use/compile a module/exe instead of using a dll? Also
when would someone use a module instead of a dll?
Example:
Module DoSomething
Sub Main()
' some code
End Sub
End Module

Instead of:

Sub Main()
' some code
CreateWidget()
End Sub

Private Sub CreateWidget()
'some code
End Sub

In other words what is the difference between a modules and a class ?

Sajjad Haider
8/28/2007 12:00:00 AM
Hi,

Delegate is a reference of a method, like you are using a 3rd party library
and you want to call a method on such events so they will create a delegate
method and you have to pass the function name so it can call your function
on such events.

DLL means it's a library Dynamic Link Library; that contains some classes
modules for specific programatic task, and a exe file shows an application.


[quoted text, click to view]
AddThis Social Bookmark Button