Groups | Blog | Home
all groups > dotnet framework > december 2006 >

dotnet framework : difference between a .dll and .ocx????


giddy
12/22/2006 11:54:51 AM
Hi ,
i'm a C# with programmer with a prety good background , but i'm
embarrased to admit i'm still not clear about dlls and ocx's

i've seen a good set of links and i did'nt get much out of them.. .so
could someone tell me :

the difference between a .dll and .ocx???? .... also. .are ocxs
activeXs or COM (or both! =S)

gideon
Milosz Skalecki
12/22/2006 1:19:00 PM
Howdy,

Should be clear:
http://support.microsoft.com/kb/159621

--
Milosz Skalecki
MCAD


[quoted text, click to view]
Milosz Skalecki
12/22/2006 1:40:01 PM
What specific interface is that? :)

An ActiveX control is essentially a simple OLE object that supports the
IUnknown interface (methods QueryInterface, AddRef, Release), the same as all
COM objects. It usually supports many more interfaces in order to offer
functionality, but all additional interfaces can be viewed as optional.
ActiveX Controls must also support self-registration by implementing the
DllRegisterServer and DllUnregisterServer functions.

--
Milosz Skalecki
MCAD


[quoted text, click to view]
Scott M.
12/22/2006 4:13:54 PM
..ocx files are files that contain code for ActiveX controls and ActiveX is
just a specific type of COM interface.


[quoted text, click to view]

Scott M.
12/23/2006 11:14:41 AM
Sounds like you've answered your own question :).

You are now talking about the differences between OLE objects and ActiveX
controls, but remember that was not the question. Not all COM components
are OLE objects.

I was pointing this out.


[quoted text, click to view]

Milosz Skalecki
12/31/2006 5:17:00 AM
Microsoft say:
"Keep in mind that an ActiveX control is just another term for an "OLE
Object" or "Component Object Model (COM) Object."
--
Milosz Skalecki
MCAD


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