PDA

Click to See Complete Forum and Search --> : EXE vS DLL


shan1
Nov 16th, 1999, 02:52 AM
When should i use Activex exe and when Activex dll.Difference please ?

Serge
Nov 16th, 1999, 05:44 PM
This is from MSDN

ActiveX EXE:
An ActiveX EXE is classified as an out-of-process component because it runs in its own process space, separate from the application using it. Because an ActiveX EXE executes in its own process space, you can use a single occurrence of an object with many other applications at once, much in the same way that Data Access Objects (DAO) are used throughout a range of applications. The downside is performance degradation caused by the extra overhead undertaken in communicating with external processes.


ActiveX DLL:
An ActiveX DLL is classified as an in-process component that coexists in the same process space as the application using it. Sharing process space with the application, an ActiveX DLL executes methods and properties more quickly than its EXE counterpart because no extra communication overhead is needed to reference it. ActiveX DLLs do have disadvantages, however; many restrictions are imposed on the way they can be designed and used. The real benefit of an ActiveX DLL is in providing common control functionality for its host application. Stripping text out of a string and replacing it with new text is an example of a common method well suited for DLL use.


Regards,

------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)