Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem With API Call
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00662553
Message ID:
00662558
Vues:
16
>I'm trying to call the GetMenuItemId API function. I am
>getting the error:
>
>"Cannot find entry point GetMenuItemId in the DLL"
>
>The code I have is:
>
>  DECLARE INTEGER GetMenu IN User32
>    INTEGER hwnd
>
>  DECLARE INTEGER GetMenuItemId IN User32;
>    INTEGER hwnd, INTEGER npos
>
>  nMenuHandle = GetMenu(_Vfp.hWnd)
>  nItemHandle = GetMenuItemId(nMenuHandle, 1)
>
>

>
>The GetMenu is returning a handle, so I think it's working
>ok. I got the function syntax's from Dan Appleman's book
>and they are the same as MSDN.

Kevin,

The declaration is case sensitive. It needs to be GetMenuItemID
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform