Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird error hiding task bar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01237167
Message ID:
01237185
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform