Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird error hiding task bar
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01237167
Message ID:
01237185
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Guys!
>
>I have a code that use everytime I need to hide the task bar:
>
>
FUNCTION HideTaskBar(TaskBarHidden)
>TaskBarStatus=TaskBarHidden
>#DEFINE SW_NORMAL 1
>#DEFINE SW_HIDE 0
>DECLARE LONG SHOWWINDOW IN WIN32API LONG , LONG
>DECLARE LONG FindWindow IN WIN32API STRING, STRING
>HWND=FindWindow("Shell_TrayWnd","")
>IF HWND=0
>	RETURN
>ELSE
>	lngState=IIF(TaskBarStatus, SW_HIDE, SW_NORMAL)
>	=SHOWWINDOW(HWND,lngState)
>ENDIF
>ENDFUNC
>
>This code works fine always, but now I get the following error:
>
>
Cannot find entry point SHOWWINDOW in the DLL
>
>This error appears on this line:
>
>
DECLARE LONG SHOWWINDOW IN WIN32API LONG , LONG
>
>Any help would be appreciated. Thanks in advance!


ALL API functions have case sensitive names, be careful how you DECLARE them. In that case it should be:
DECLARE LONG ShowWindow IN WIN32API LONG , LONG
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform