PDA

Click to See Complete Forum and Search --> : ActiveX or UserControl


jeffo
Sep 20th, 2001, 11:44 AM
What is the difference between creating an ActiveX DLL/EXE or creating a User Control?

Thanks,
Jeff

simonm
Sep 25th, 2001, 07:36 AM
The differences between the types of ActiveX components you can create are slight.

DLL's and OCX's (User controls) are in-process where as EXE's are out of process.

DLL's are faster than EXE's (because their in-process) but if they crash, your calling app will also crash.

EXE's are slower than DLL's but an EXE crashing will not effect your calling app.

The only difference between an ActiveX EXE and a standard EXE is that an ActiveX EXE exposes public classes to client projects (that reference it) thus allowing them to instantiate these public classes.

An OCX is like a DLL but it doesn't (generally) expose instantiatable classes. An instance is created by dropping it on a form. Therefore it may have a visual interface that is contained in a form (and must respond to user interaction).


Need to know anymore?

jeffo
Sep 25th, 2001, 11:23 PM
Thanks Simonm....that helps alot!!!!