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:
01237183
Vues:
17
This message has been marked as the solution 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!

ShowWindow is also a VFP reserved word, and the dll declarations are case sensitive.

Make shure ShowWindow preserves its case, and better yet, use an alias like _ShowWindow or APIShowWindow.

If you are using the Beautify tool, check the Beautify directives in the Help file. I dont have VFP right now.

Carlos
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform