Re: difference between a .dll and .ocx????



Yes, my background is in VB 6.0 & VB.NET.

No problem. Happy New Year!


"Milosz Skalecki" <mily242@xxxxxxxxxxxxx> wrote in message
news:048C1B99-F0C5-4FDD-B9A7-DB228F7D2A99@xxxxxxxxxxxxxxxx
Scott,

You used "ActiveX is just a specific type of COM interface" which for me
(C++ background) meant "you have to implement a special interface to make
COM
server ActiveX" :) (From your replies above about DLLs) I see you might be
a
programmer with vb background, so please forgive me for mistunderstanding
:)
--
Milosz Skalecki
MCAD


"Milosz Skalecki" wrote:

Howdy Scott,

My point was sentence written by you:
"ActiveX is just a specific type of COM interface." which i disagreed.
From
architectural point of view, COM, OLE, ActiveX objects have to only
implement
IUnknown interface. It's not a specific or special type of COM interface
it's
just another name for the same technology. See Microsoft spec:

http://support.microsoft.com/kb/154544/EN-US/

especially:

"ActiveX controls, formerly known as OLE controls or OCX controls,.. "

and

"Q. What is the difference between an OLE control and an ActiveX control?

A. No difference. "ActiveX control" renames and restructures the OLE
controls technology. For marketing reasons, the term OLE has come full
circle
and once again refers to the OLE technologies that apply to object
linking
and embedding only. The term "OLE control" has been replaced with the
"ActiveX control" to distance the name from the older Object Linking and
Embedding technology with which controls have very little in common. No
one
should use the term "OLE control" anymore."

1. Q. What is the difference between an OLE control and an ActiveX
control?
A. No difference. "ActiveX control" renames and restructures the OLE
controls technology. For marketing reasons, the term OLE has come full
circle
and once again refers to the OLE technologies that apply to object
linking
and embedding only. The term "OLE control" has been replaced with the
"ActiveX control" to distance the name from the older Object Linking and
Embedding technology with which controls have very little in common. No
one
should use the term "OLE control" anymore.
--
Milosz Skalecki
MCAD


"Scott M." wrote:

Well, not quite since not all OLE objects are ActiveX objects. But,
nonetheless, what's your point? The OP is asking about .dlls and
.ocxs.
You seem to be hung up on OLE and ActiveX.


"Milosz Skalecki" <mily242@xxxxxxxxxxxxx> wrote in message
news:081A5E13-7191-4C6D-80F0-62E8B9F32874@xxxxxxxxxxxxxxxx
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


"Scott M." wrote:

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.


"Milosz Skalecki" <mily242@xxxxxxxxxxxxx> wrote in message
news:A37F45F2-31A6-492F-B4B0-D37EC751C330@xxxxxxxxxxxxxxxx
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


"Scott M." wrote:

..ocx files are files that contain code for ActiveX controls and
ActiveX
is
just a specific type of COM interface.


"giddy" <gidisrael@xxxxxxxxx> wrote in message
news:1166817291.358219.301130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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












.



Relevant Pages

  • Possible to pass strings back to ASP from ActriveX?
    ... Is it also possible to pass it back from ActiveX, ... afx_msg int AboutBox; ... helpstring("AxTemplateTest1 ActiveX Control module"), ... helpstring("Dispatch interface for AxTemplateTest1 Control")] ...
    (microsoft.public.windowsce.embedded)
  • Re: Internationalization
    ... ActiveX is not one the programmer necessarily has control over. ... I delivered used a graphics support package, which only had an ActiveX ... OleDB database interface is clearly an OLE interface. ...
    (microsoft.public.vc.mfc)
  • Re: Getting an interface to a MSFlexGrid control
    ... see how can you get an interface to an ActiveX Control ... since ActiveX Controls ... >> Microsoft MVP, MCSD ...
    (microsoft.public.vc.atl)
  • Re: COM Interop Issues
    ... and you should be able to get direct access to the ActiveX control ... through the GetOcx method on the wrapper that is created for your control. ... you should be able to cast it to any interface that the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Embed Another Application In my C# App
    ... If it really doesn't have any sort of OLE or any other sort of programmable ... the only way I can think of to control it is using SendKeys. ... It does not appear to have an OLE interface. ...
    (microsoft.public.dotnet.languages.csharp)