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:
00642594
Vues:
16
I started poking around in the DDE Share stuff in Win2k after your meesage yesterday. I'm now pretty sure you are right. I'll have to deceipher MS's documentation and go from there.

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