Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get focus to my VFP app from a VFP utility once c
Message
From
01/05/2007 08:13:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01220775
Message ID:
01221404
Views:
24
>Hi Cetin
>
>Here is a typical one
>> declare short ShowWindow in WIN32API alias Win32ShowWindow ;
>> integer hwnd, ;
>> integer nCmdShow
>
>With Tools > Beautify the ShowWindow becomes SHOWWINDOW, that is the reason I get the following error:
>---------------------------
>VSO Report Manager
>---------------------------
>Unhandled Error # 1754
>Cannot find entry point SHOWWINDOW in the DLL.
>---------------------------
>OK
>---------------------------
>Back to CamelCase and the error goes away. Is this correct? Can you reproduce it?
>
>Plus one more thing, if the app is minimized, the code cannot bring it to the state the window was. Is this possible? I tried SW_SHOW and SW_SHOWDEFAULT also but no joy.
>
>
>> #define SW_SHOWMINIMIZED 2
>> #define SW_SHOWMAXIMIZED 3
>> #define SW_MAXIMIZE 3
>
>1, 2, 3 :)

Bhavbhuti,
No need to try to reproduce. win32api calls are case sensitive and ShowWindow is a reserved keyword in VFP. That's why I used "as". In intellisense there are other beautify errors so to prevent such errors I use 'No change' for keyword and variable names.
I think that's because you removed the if part claiming you didn't need it:) Restores on my system.

PS: What is 1,2,3:) ?
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform