ISupportErrorInfo Example 
Author Message
 ISupportErrorInfo Example

Hi,

Could someone possibly point me in the direction of a good
example of how to use the ISupportErrorInfo interface.  

Thanks

Mike Towers



Wed, 01 Jun 2005 18:14:41 GMT  
 ISupportErrorInfo Example
There is only one method. Use ATL wizard to generate
object that supports it. That would be the best example.

AlexO

Quote:
>-----Original Message-----
>Hi,

>Could someone possibly point me in the direction of a
good
>example of how to use the ISupportErrorInfo interface.  

>Thanks

>Mike Towers
>.



Fri, 03 Jun 2005 21:53:14 GMT  
 ISupportErrorInfo Example
Once your interface supports ISupportErrorInfo you just add an error string
to the resource and then call AtlReportError when you want to report an
error to the client.  If you did everything correctly when VB hits this
error, VB will show a messagebox containing your string resource error
message.

PS: Remember the HINSTANCE parameter to AtlReportError should be
_Module.GetResourceHandle() not GetModuleHandle(NULL)!


Quote:
> There is only one method. Use ATL wizard to generate
> object that supports it. That would be the best example.

> AlexO

> >-----Original Message-----
> >Hi,

> >Could someone possibly point me in the direction of a
> good
> >example of how to use the ISupportErrorInfo interface.

> >Thanks

> >Mike Towers
> >.



Sat, 04 Jun 2005 02:11:09 GMT  
 ISupportErrorInfo Example

Quote:

> Once your interface supports ISupportErrorInfo you just add an error string
> to the resource and then call AtlReportError when you want to report an
> error to the client.  If you did everything correctly when VB hits this
> error, VB will show a messagebox containing your string resource error
> message.

You should not, of course, be limited to just one error message.

--
Craig Powers
MVP - Visual C++



Sat, 04 Jun 2005 04:08:29 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Proposal: alt.binaries.examples.vb4 , alt.binaries.examples.vcpp , alt.binaries.examples.java

2. ISupportErrorInfo question

3. ISupportErrorInfo problems

4. ISupportErrorInfo - thread resurrection

5. How to work with ISupportErrorInfo ?

6. ISupportErrorInfo and VB

7. ISupportErrorInfo (manually)

8. help ISupportErrorInfo used on DLL runnig on server

9. ISupportErrorInfo Issue

10. ISupportErrorInfo with MTS

11. ISupportErrorInfo with MTS

12. implementing IErrorInfo and ISupportErrorInfo interfaces

 

 
Powered by phpBB® Forum Software