Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FindWindow() VFP from Word
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
FindWindow() VFP from Word
Miscellaneous
Thread ID:
00139394
Message ID:
00139394
Views:
196
Hi,

I would like to know if VFP is running when running a Word macro. Word requiers both the window class and the window name to find the window using FindWindow(). To get the class name of the VFP main window I used GetClassName() and found it to be "Fox_4000001". However, when I use this in Word it still doesn't recognize VFP as running.

The code I am using in Word97 is this:

lnHandle = FindWindowA("Fox_4000001", "Aladdin 4.0")

where "Aladdin 4.0" is the caption of the main VFP window when our app is running in VFP3.


Help appreciated...
(using VFP 3.0 for Win & Mac)
Next
Reply
Map
View

Click here to load this message in the networking platform