Re: COM returning error message to ASP
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 11 Jul 2005 09:33:47 -0400
"Chan" <parkchan@xxxxxxxxxxx> wrote in message
news:1121087037.356307.86640@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thank you for your reply.
>
> Does this look okay?
>
> STDMETHODIMP CMyComTwo::Create()
> {
> AFX_MANAGE_STATE(AfxGetStaticModuleState())
>
> // TODO: Add your implementation code here
> if (...) { // something goes wrong here
> return AtlReportError (
> CLSID_NULL,
> "Can not proceed...",
> IID_NULL,
> 0
> );
The IID should be that of your interface - the client will turn around
and pass it to your implementation of ISupportErrorInfo which should
recognize it.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: COM returning error message to ASP
- From: Chan
- Re: COM returning error message to ASP
- References:
- COM returning error message to ASP
- From: Chan
- Re: COM returning error message to ASP
- From: Brian Muth
- Re: COM returning error message to ASP
- From: Chan
- Re: COM returning error message to ASP
- From: Igor Tandetnik
- Re: COM returning error message to ASP
- From: Chan
- COM returning error message to ASP
- Prev by Date: Re: COM returning error message to ASP
- Next by Date: CoImpersonateClient() always succeed
- Previous by thread: Re: COM returning error message to ASP
- Next by thread: Re: COM returning error message to ASP
- Index(es):
Relevant Pages
|