Solved

Propagation Errors with COM

Posted on 1998-11-23
1
225 Views
Last Modified: 2013-11-25
We are having trouble passing error information across two COM boundaries. If you have :

VB calls ATL object1 which calls ATL object2 and ATL object2 throws an exception using

   return( Error( "Error Description", GUID_NULL, E_FAIL) );

We want an error to be propagated to the origionator (VB). The error number E_FAIL is available in VB but the  "Error Description" is lost somewhere along the way.

Any solutions? We are using MSVC6.0 and VB6.0
0
Comment
Question by:prb
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
ID: 1178463
VB queries for an interface ISupportErrorInfo. Implement this interface.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question