CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Upgrade COM to DCOM

  1. #1

    Upgrade COM to DCOM

    I need to write a middleware solution, naturally - a COM object. However, I need that object to be accessible through the network (DCOM). What are the steps necessary to make a regular COM object a DCOM object? Please give details...

  2. #2

    Re: Upgrade COM to DCOM

    If you use standard datatypes, any COM object you create should be remotable. Otherwise, only one way to find out...

    All you need to do is place your COM object on the remote server, then REGSVR32 it from your local machine so that your COM component registry key will include the "RemoteServer32" key which points to the DLL.

    You may wish to grant access to only certain people, so run DCOMCNFG.

    To instantiate the object you can use CoCreateInstanceEx, but if you follow the tips above CoCreateInstance should suffice (it will use the RemoteServer32 key)

    Scott Tunstall

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)