RE: How would you use ActiveX Dll and ActiveX Exe in y...
Activex dll can be used by first you have to create ActvexDll option while starting project and then code the class in ActivexDll give name to class and also to Activexdll then from file option make Dll store some where now this dll can be used in other project open your project in which you want to use this dll goto project->refrences->browse-> select the dll file which we made and now you are ready to use this dll in your project
RE: How would you use ActiveX Dll and ActiveX Exe in your application?
ActiveX DLLs and EXEs can be powerful tools for code encapsulation and reuse and for breaking a large project down into smaller tasks.
The first important difference is that an ActiveX DLL runs in the same memory space as the calling/referencing executable/process where as an ActiveX EXE runs in its own memory space separate from the calling executable/process.
Based on this understanding the majority of situations call for an ActiveX DLL for easier binding and better performance. Examples of good uses for ActiveX DLLs are function libraries such as graphics or math functions and data object libraries such as custom data objects specific to your solution.
ActiveX EXEs may be used to service multiple executables or processes providing a common shared resource to minimize memory use and share information. This is particularly common with web-based applications though not exclusive to them.
In parting note when modularizing your applications another key concept is interfaces to alleviate upgrade situations where you have previously deployed an ActiveX DLL or EXE and now must update it with new functions and features.