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..)
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.