1

I need to change the CLSID for my COM DLL.

I tried to simply change the CLSID in the .rgs file. Is this the valid way, or do I have to do something else?

I am asking because it does not work.

When I change the CLSID in the rgs file, and compile it and then try to use it, I get the "the requested class could not be delivered" error.

4

1 回答 1

2

You have to change everything:

  • All references to the CLSID in the DLL that implements the COM server.
  • The registration code.
  • The code that instantiates and consumes the COM server.

I suspect that you didn't manage to get every last reference.

于 2013-03-30T12:36:22.433 回答