GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Visual Basic
Go To First  |  Previous Question  |  Next Question 
 Visual Basic  |  Question 95 of 453    Print  
How would you use ActiveX Dll and ActiveX Exe in your application?

  
Total Answers and Comments: 6 Last Update: February 04, 2009   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Raj Gujar
 

IN  process

  • In Process is which run on same memory process generally dll are in process
  • An in-process component is implemented as a DLL,
  • Runs in the same process space as its client app,
  • enabling the most efficient communication between client and component.
  • Each client app that uses the component starts a new instance of it.

 

Out Of Process

  • An out of process component is implemented as an EXE,

and unlike a dll, it  runs in its own process space.

  • As a result, exe’s are slower then dll’s because communications between client and component must be marshalled across process boundaries.
  • A single instance of an out of process component can service many clients.
  • Out Process are the Process which run in separate process. Generally exe are out process


Above answer was rated as good by the following members:
GuruRoss
September 08, 2005 10:53:24   #1  
vishnu        

RE: How would you use ActiveX Dll and ActiveX Exe in your application?
An ActiveX Dll runs is an in process server running in the same memory space as the client process.

An ActiveX Exe is an out of process server which runs in it's own separate memory space.

 
Is this answer useful? Yes | No
October 25, 2005 16:46:26   #2  
Raj Gujar        

RE: How would you use ActiveX Dll and ActiveX Exe in y...

IN process

  • In Process is which run on same memory process generally dll are in process
  • An in-process component is implemented as a DLL
  • Runs in the same process space as its client app
  • enabling the most efficient communication between client and component.
  • Each client app that uses the component starts a new instance of it.

Out Of Process

  • An out of process component is implemented as an EXE

and unlike a dll it runs in its own process space.

  • As a result exe s are slower then dll s because communications between client and component must be marshalled across process boundaries.
  • A single instance of an out of process component can service many clients.
  • Out Process are the Process which run in separate process. Generally exe are out process

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 07, 2005 10:16:44   #3  
SHANTHI        

RE: How would you use ActiveX Dll and ActiveX Exe in y...
Active x controls
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
April 15, 2006 10:09:24   #4  
Tejas Desai Member Since: April 2006   Contribution: 5    

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

No idea about how to use Exe working on it


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
May 11, 2006 10:47:59   #5  
uk19705 Member Since: May 2006   Contribution: 5    

RE: How would you use ActiveX Dll and ActiveX Exe in y...

Exe can be used by launching through shell command.

Somthing like Shell.execuet (xyz.exe)


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
February 04, 2009 13:11:31   #6  
GuruRoss Member Since: February 2009   Contribution: 1    

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.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape