• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

Loading DLL as a Out of Process

By default DLL will load as a Inprocess.
Whether we can load the ActiveX Dll as a Out of Process in a seperate location.
1 Solution
No dll's always require a client's process space to run.
muralicAuthor Commented:

    DLL will load in a Virtual memory of the current application.
    Rather than using the Virtual Memory, whether I can load it in a separate memory location like ActiveX EXE.
As stated by jkunal.... you cannot make a DLL run out of process. If its an ActiveX DLL then you can recompile as and ActiveX EXE but thats about it.
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Hey muralic,why have you rejected my answer?
Can you load a dll out of process if so please also let me know other wise, please give me my due points.

You cannot load a dll like a exe in a seperate memory process................

To give jkunal the points you can accept his comment as an answer. If compiling it as an ActiveX EXE helps you can accept my answer.

Either way you cant load a DLL out of process.
jkunal is right, so the points are deserved.

PS - the answer is perfect. The fact that you don't particularly like the answer should not influence your grading. (Don't shoot the messenger).
To load a DLL as out of process, you need a surrogate process. This is what happens in MTS. Where the DLLs objects can be created in another machine.
Such kind of processes you can't create in VB check out VC for the same if u r interested.
VBGuru is right - you can load a DLL using a surrogate.  DCOM comes with a default surrogate.  
  To know if your DLL can run in a surrogate, check out the Registry.  It's CLSID must have an AppID subkey and that key must have a DllSurrogate value.
But still the dll is running in the process space of MTS.....
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now