问题描述:
英语翻译
1.3 About ActiveX EXEs
ActiveX EXEs are a feature of Visual Basic 5 and Visual Basic 6 development.They are code library DLLs that can also be run as an executable.ActiveX EXEs differ from traditional DLLs in several ways:
· Run in their own process.Whereas normal DLLs run in the memory process of their parent application,ActiveX EXEs run in their own process.This means they show up as separate applications in Task Manager.It also means ActiveX EXEs are slower than DLLs since Windows has to do extra work to marshal variables when they are passed to and from an ActiveX EXE.
· Class instancing.ActiveX EXEs have two class instancing modes not available to normal DLLs and executables:SingleUse and GlobalSingleUse,both of which ensure that a separate copy of the class is loaded into memory whenever an instance is created.
· Remote execution.It is possible to invoke classes in an ActiveX EXE on a remote computer.In Visual Basic 5 and Visual Basic 6,the only other way to execute code on a remote computer was by creating DLLs hosted in Microsoft Transaction Server.
· Multi-threading.Because ActiveX EXEs run in their own process,they are allocated their own thread.In theory,this enables multi-threading in a Visual Basic 5 or Visual Basic 6 application.In practice,this is problematic since the calling application must wait for the called method in the ActiveX EXE to finish execution before continuing,giving a user-experience that is the same as a single-threaded application.
The two most common uses for ActiveX EXEs are for running code on remote computers and for creating executables that also act as a code library.
1.3 About ActiveX EXEs
ActiveX EXEs are a feature of Visual Basic 5 and Visual Basic 6 development.They are code library DLLs that can also be run as an executable.ActiveX EXEs differ from traditional DLLs in several ways:
· Run in their own process.Whereas normal DLLs run in the memory process of their parent application,ActiveX EXEs run in their own process.This means they show up as separate applications in Task Manager.It also means ActiveX EXEs are slower than DLLs since Windows has to do extra work to marshal variables when they are passed to and from an ActiveX EXE.
· Class instancing.ActiveX EXEs have two class instancing modes not available to normal DLLs and executables:SingleUse and GlobalSingleUse,both of which ensure that a separate copy of the class is loaded into memory whenever an instance is created.
· Remote execution.It is possible to invoke classes in an ActiveX EXE on a remote computer.In Visual Basic 5 and Visual Basic 6,the only other way to execute code on a remote computer was by creating DLLs hosted in Microsoft Transaction Server.
· Multi-threading.Because ActiveX EXEs run in their own process,they are allocated their own thread.In theory,this enables multi-threading in a Visual Basic 5 or Visual Basic 6 application.In practice,this is problematic since the calling application must wait for the called method in the ActiveX EXE to finish execution before continuing,giving a user-experience that is the same as a single-threaded application.
The two most common uses for ActiveX EXEs are for running code on remote computers and for creating executables that also act as a code library.
问题解答:
我来补答展开全文阅读