>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