Wednesday, July 25, 2007

Which ActiveX Component Do I Want To Build?

With all the different types of ActiveX components to choose from, i have often got confused on which type of component would i would want in my application. Finally while going through VB Blackbook by Steven Holzner, i found this interesting comparison.Take a look at this list:

• To build a component that can run in the same process with your application, build an ActiveX DLL.
• To build a component that can serve multiple applications and can be run as a standalone application,
build an ActiveX EXE.
• To build a visible component that can be dropped into an application at design time, build an ActiveX control.
• To build a visible component that can take over an application window at runtime, build an ActiveX document.

Remember that Activex DLL is an in-process component while Activex Exe is an out-process component.