×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

DCOM faq link

ActiveX dll and DCOM? by Fursten
Posted: 9 Jul 02 (Edited 15 Dec 02)

If you make an ActiveX dll with Visual Basic and then if you register that dll in a server (the computer expected to run that dll) it seems you will have 2 problems:

1) It will not appear in DCOM config utility of the server computer

2) It will give you an error like this: Cannot create Activex Dll (in the client computer trying to call that dll)


How to solve this?

DCOM config will only show the entries for some kind of applications (ex.: ActiveX EXE). This is because after you register an ActiveX dll it will not be created in the registry an entry point like: AppID.

You will get that error in point 2 due to what I saied in point 1 and because you don¦t have in the registry something that says that the dll should run with a surrogate process (a process that only exist to suport that dll, putting it into a process)

How to solve this:

There are 2 ways:

1) Open the registry an put this entries by hand... Or

2) Open OLEVIEW and search for the class that you have inside your dll (object classes/all objects... MyDll.Myclass). After you have find it, in the right pane you will have some tabs. Click on the second tab (Implementation)In this tab says that it should work as a surrogate: use surrogate process (don¦t browse for a file that will be used to make that surrogate... windows will automatically use dllhost.exe for it... so leave it empty)

You are done.

Try to run the client again and call the server.


Back to DCOM / COM FAQ Index
Back to DCOM / COM Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close