Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between activex ocx and activex dll

Status
Not open for further replies.

gcastillo

Programmer
Jun 9, 2000
127
MX
I know how they work, but I do not know what is the exact difference between them
 
Let me see if i get this right...
1) OCX's are "controls", ie, they work as do all VB controls, - you create an "instance" of them on your VB form and use it as you do everything else.
2) OCX's are "out-of-process" servers - meaning they are executed and run by Windows in their OWN PROCESS. DLLs are in-process, meaning they will run in the SAME PROCESS as the application they are serving.
Hope this helps (a bit..)

MgergZ
 
Actually, both OCX (ie controls) and DLLs are in process COM Servers. ActiveX Exe and AxtiveX DLL running in a surragate process (such as MTS or DLLHOST) are out of process COM Servers.
The main diferrence between ActiveX DLLs and ActiveX OCX is that DLLs usually do not present any type of GUI interface (note that the GUI interface is not the same thing as the COM interface) whereas an OCX present a GUI interface that is to act as a control on an applications GUI. Both of these COM servers are considered to be In process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top