Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get focus to my VFP app from a VFP utility once c
Message
De
30/04/2007 07:12:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01220775
Message ID:
01221042
Vues:
33
>Hi Cetin
>
>>>Just one glitch...
>>>> declare short ShowWindow in WIN32API alias Win32ShowWindow ;
>>>> integer hwnd, ;
>>>> integer nCmdShow
>>>it uses User32
>>
>>win32api includes user32.
>
>But I got the error that it could not find an entry point, I switched to User32 and it works. Plus one thing I found odd but have ignored for the moment is the compiler error saying that it cannot locate Win32ShowWindow, though it works when the utility is executed.

My bad it would be "as" not "alias" :

declare short ShowWindow in WIN32API as Win32ShowWindow ;
integer hwnd, ;
integer nCmdShow

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform