Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unspecified error
Message
 
To
29/09/2002 15:31:42
Virgil Reboton
Iger Technologies Inc.
Bacolod, Philippines
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00705684
Message ID:
00705819
Views:
9
>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
Map
View

Click here to load this message in the networking platform