Information générale
Catégorie:
COM/DCOM et OLE Automation
>How do I return an error from the Init Event of my COM created in VFP?
>
>If i put RETURN .F. in the INIT event, The COM client will receive this error.
>OLE error code 0x80004005: Unspecified error.
>
>I have also tried COMRETURNERROR() but i get this error message
>Feature is not available.
>
>Any other way to return an error to my COM Client?
IMO you cannot return error info from Init event. At time of this event the object is not created and, therefore, ISupportErrorInfo and IErrorInfo interfaces of your object are not accessible.
Alexander
Précédent
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