Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DDE connection works but gives erroneous message box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00640985
Message ID:
00642139
Vues:
23
I wasn't sure. The error box of course has FoxPro in the titlebar. When I use the VFP DDESetOption(cOption, lExpression) with (SAFETY, .F.), I get an error that variable "SAFETY" is not found. This morning I will try the TIMEOUT option and see if that works.

Update. I get the same variable not found error when I use TIMEOUT with DDESetOption.

Thanks

>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)
Opportunity is missed by most people beacuse it is dressed in overalls, and looks like work --- Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform