It sound like a Windows DDE error message. I don't think you can intercept it in Foxpro.
>I have the following code to initiate a DDE connection with Peachtree Accounting. It works fine with only one annoying bug. After getting a messagebox asking me if I want to activate Peachtree Yes/No I click Yes and immediately I get another messagebox stating that some component of the Peachtree executable is damaged or missing, unable to start the application, but Peachtree successfully launches. I thought 'safety off' would take care of that, but no cigar. Any ideas? This is on a Win2ksp2 box, VFP6sp5, Peachtree 9.0.2.
>TIA
>
SET SAFETY OFF
>local lnInitiate
>***
>
>lnInitiate = DDEInitiate("peachw","clatest")
>IF lnInitiate = -1
> *--RUN Peachtree program in inactive minimize mode
> RUN /N7 D:\PEACHW\PEACHW.EXE O:\PEACHW\CLATEST\
>ENDIF
>
>= DDETerminate(lnInitiate)
--sb--