Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CoAllowSetForegroundWindow
Message
 
 
To
04/10/2013 18:06:05
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01584799
Message ID:
01584806
Views:
58
I built EXE with your code and it runs w/o errors. So problem is not EXE but what you are doing differently in EXE

>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
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform