Solved

Propagation Errors with COM

Posted on 1998-11-23
1
223 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
Comment Utility
VB queries for an interface ISupportErrorInfo. Implement this interface.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

763 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

10 Experts available now in Live!

Get 1:1 Help Now