General discussion

Locked

C++ DLL Registration problem

By ematz ·
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!

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

C++ DLL Registration problem

by jp-mattenet In reply to C++ DLL Registration prob ...

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

Collapse -

C++ DLL Registration problem

by ematz In reply to C++ DLL Registration prob ...

The question was auto-closed by TechRepublic

Collapse -

C++ DLL Registration problem

by PrinterManager In reply to C++ DLL Registration prob ...
Collapse -

C++ DLL Registration problem

by ematz In reply to C++ DLL Registration prob ...

The question was auto-closed by TechRepublic

Collapse -

C++ DLL Registration problem

by ematz In reply to C++ DLL Registration prob ...

This question was auto closed due to inactivity

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums