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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OCX as DLL - is it possible ?

Status
Not open for further replies.

mensud

Programmer
Jul 22, 2001
51
US
Hi,

Basicly what I am trying to do is to "convert" or rewritre an OCX control into ActiveX Dll.
Since I am using UserControl (in OCX), I don't know if it is possible to convert this control to dll.

If there is a way to make this conversion please suggest some tips how to do that.
Also if you know any good link about advanced COM in VB, please write it.

Thanks

Mensud
 
Actually an OCX is a DLL. It's just the extension that's different (and, of course, in VB the internals). In many other languages active x controls get .dll as an extension. The exentsion really does not mather.

You can still insert classes in your OCX to reference and instantiate from within other applications.

Also, I think you can use the OCX from within the ActiveX dll in VB too (or at least it should be possible). You must know that the dll and ocx modules are just the binaries that may house several different COM objects (being it a plain object or an ActiveX control does'nt matter; this is just a matter of which interfaces have been implemented on the COM object in question).

Again; this is how it should be, since this is the way that COM operates. However, VB having such a huge shell around the COM stuff, might not provide for this. I'd say to just try it; you may find it is very well possible....

Greetings,
Rick
 
OCX is a special ActiveX DLL. It is an inprocess dll. You can not use it remotely.

What are you trying to do? I don't understand what the OCX isn't providing that you want to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top