Ricky said:
Hi
Can anyone explain what are the relationship between COM , ActiveX, DLL ?
In a nutshell:
- DLL (Dynamic Link Library)
A file type for files that contain code: They contain code just like
executable files do, but unlike these DLLs have no entry point (no main
function) and can export functions. DLL files usually come with the DLL
suffix, but this is not neccessary (indeed, 'OCX' files are DLLs, too)
- COM (Component Object Model)
Is a specification for interaction between components. By these
specifications a component can written by one developer in one language can
be used by another developer in another language. Almost all windows
programming languages currently avaliable have some support for COM.
COM components often come in DLLs, but can also be implemented in executable
(EXE) hosts, or even in some non-compiled a scripting languages (e.g.
VBScript)
The COM protocol covers a wide variety of component interactions, from
simple calling-a-method-on-an-object, to late-bound UI-rich componets
-ActiveX
The line between COM and ActiveX is hard to draw: AFAIK ActiveX used to be a
marketing name for some COM technologies, that enabled "active content" in
IE. This usually includes ActiveX controls (also known as COM-Controls) and
ActiveX scripting (AKA Windows Scripting Engines).
Niki