c++ - Registering a COM object with only an IDL file -
i have third-party idl file which, when compiled, generates header , _i.c file. 3 of these files part of visual studio 2010 project. (so far project empty other attempted com initialization stuff.)
i can project compile calling
coinitialize(null); cocreateinstance(stuff);
at runtime cocreateinstance() returns "class not registered" error.
everything can find on internet says register com object running regsvr32 on dll file or exe file. have idl file. tried registering exe file generated project, got error saying module "loaded entry-point dllregisterserver not found."
i'm not sure else try.
idl files define interfaces, not implementations. if literally have of third-party component idl file have nothing register.
it's possible idl file describes interfaces you're implement third-party code calls into; in case wouldn't cocreateinstance them, might cocreateinstance you. given amount of information, i'm leaning towards you're missing actual third-party component or you're passing wrong thing cocreateinstance.
Comments
Post a Comment