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)