Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Propagation Errors with COM

Posted on 1998-11-23
1
Medium Priority
?
233 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 200 total points
ID: 1178463
VB queries for an interface ISupportErrorInfo. Implement this interface.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

916 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