Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if VFP is running from Word ??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Check if VFP is running from Word ??
Divers
Thread ID:
00160586
Message ID:
00160586
Vues:
75
Hi,

When in Word, I just want to know if VFP is running. I have tried to DECLARE FindWindowA and use it, but for it to work I need to specify the class of the main FoxPro window. When looking from another program the class is supposed to be 'FOX_400001' as I am using VFP3b, but this name doesn't do the trick.

Is there some other was to find out if VFP is running or does anyone know the name the class of the FoxPro main window??


Any help appreciated...


Klas Nygren



PS The text bolow I found in the MSKB:


The information in this article applies to:
Microsoft Office 97 for Windows


SUMMARY
Some Microsoft Windows application programming interface (API) function calls, for example, FindWindow(), require the window class name (the main window).



MORE INFORMATION
The window class names used by each Microsoft Office 97 program are listed in the following table.


Program name Window class name
----------------------------------------
Microsoft Access OMain
Microsoft Excel XLMAIN
Microsoft Outlook rctrl_renwnd32
Microsoft PowerPoint PP97FrameClass
Microsoft Word OpusApp
(using VFP 3.0 for Win & Mac)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform