Solved

Propagation Errors with COM

Posted on 1998-11-23
1
224 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

912 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now