Consider this code:
try {
ISomeObject pObj(__uuidof(SomeClass));
ISomeObject pObj2(__uuidof(SomeOtherClass));
} catch ( _com_error& e ) {
}
those. I have a block of code that initializes my objects. Sometimes (poor installation) it does not work because some class has not been properly registered. (I have no specific problem, but rather a general discussion here.)
Is there any way, from the caught exception or otherwise, to understand which class failed? A thought to make their own packaging, which stores a variable like gLastCreateAttemptUuid, but it seems cumbersome.
Also, suppose that SomeClass, in turn, is trying to create something else that is not registered. Can I then find out the main problem?
source
share