Information générale
Catégorie:
COM/DCOM et OLE Automation
>Actually you can use ComReturnError() to relay the XML error information back to a COM client. This function was added specifically for improved COM support on errors and is certainly appropriate in this situation.
Hmmm, I woudln't recommend that though. If some COM object did that in my apps, I'd have no idea what do with it. Its all up to the client, and thats why there's the standard error structure.
Though, being able to return TRAPPED (expected) errors safely from a COM object's method is not a bad idea, I do it often.
>Although the help files do not specify if there is a limit to the amount of info you can pass back through it.
I've seen wild things doing that. In VFP7 I got alot of C5 errors, in VFP6 things like "?" would stop working from the command window. Kindof wierd.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement