Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: C++, Enterprise
Expertise: Beginner
Mar 20, 2001

C++ Exceptions Will Not Cross COM Boundaries


When writing a COM object using C++, care should be taken to ensure that all C++ exceptions generated by the code are handled within the call itself. If any C++ exception is not handled, the call will fail.

For example:
 
CMyComObject::foo()
{

 HRESULT hr;
..
.
 throw hr;

}
Rajesh Chathapuram
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap