General information
Category:
COM/DCOM and 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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only