Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CoAllowSetForegroundWindow
Message
De
04/10/2013 18:06:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
CoAllowSetForegroundWindow
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01584799
Message ID:
01584799
Vues:
88
Has anyone used this in a VFP application?

We are using Word for spell check and the spell check UI stays behind the VFP app. I found this http://support.microsoft.com/kb/243844
and am trying to make it work in VFP.

No problem when running an APP in VFP in development, but when I try to run it from the compiled EXE it returns a Data Type Mismatch error when I run CoAllowSetForegroundWindow(loWord, 0)


Here is what I'm trying

Declare integer CoAllowSetForegroundWindow IN ole32.dll object pUnk, long byVal
...
loWord = CREATEOBJECT('word.application')
CoAllowSetForegroundWindow(loWord, 0)

Any help would be greatly appreciated.

Thanks,
Larry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform