>Hi,
> How will the error message being prompt in this case? Return error code from COM to determine the error?
>
>Thank you
Look at COMRETURNERROR() to handle error messages. This will return a message to the client and raise an error there. You should not have any UI display on the server...and in fact, VFP COM DLLs cannot have any UI.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer