Re: Automation Error Library not registered
"Herby" <prmarjoram@gmail.com> wrote in message
news:1175604858.427688.281490@n76g2000hsh.googlegroups.com
Here is an example of one of the implementation class declarations:
class ATL_NO_VTABLE TDatasafePLMNListImpl:public CComObjectRootEx <
CComSingleThreadModel >,
public CComCoClass < TDatasafePLMNListImpl,
&CLSID_DatasafePLMNList >,
public IDispatchImpl < IDatasafePLMNList, &IID_IDatasafePLMNList,
&LIBID_ai_dsruleEngine2 >
Within the IDispatchImpl you can see i am using the unique LIBID of
the new library container?
Now just make sure the library with this LIBID is actually registered on
the machine where your component is running. The error message suggests
it wasn't.
Here is an extract from the TLB:
[
uuid(FE639357-8E26-4D8F-99FD-343F118489C2),
version(2.0),
So you also need to specify version number in IDispatchImpl. The last
two parameters, that you left unspecified, select version 1.0 by
default. You need
public IDispatchImpl < IDatasafePLMNList, &IID_IDatasafePLMNList,
&LIBID_ai_dsruleEngine2, 2, 0>
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925