Discussion Locked

C++ DLL Registration problem

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have written a simple COM DLL in C++ which takes in a progid and servername, creates the object on the specified server, and returns a reference to that object. The DLL has been tested sucessfully on my machine (Win2000). The problem arises whenI install the DLL on a client machine (WinNT4 - yes I have admin access). It registers successfully, however when I test it with a simple VBScript, I get a 429 error - ActiveX cannot create object. It appears the class has not registered properly. I had a similar problem with a C++ service .EXE that I wrote. The problem was solved by brute-forcing the class entry into the registry. Has anyone seen this problem? Is there something I am doing wrong to cause this? Please email ericmatz99@yahoo.com if you can help.

Thanks in advance!

5 replies

by Member 23161263

I Had this problem before, and it was not really related to the DLL itself but to another component used inside the DLL. In my case the component was using indirectly inetmon.dll (internet moniker..) and for some reason the same DLL was regitered in different parts with different theading modes. I think that this DDL is part of internet explorer and has gone several changes along the way..
Setting the treadding mode to the same value for all references fixed the problem.
In any case, you canuse the list of loaded dll from the development machine to check them on the registry.

Best luck,
JP

This discussion is closed to new replies.