Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DDE connection works but gives erroneous message box
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
DDE connection works but gives erroneous message box
Miscellaneous
Thread ID:
00640985
Message ID:
00640985
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform