Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem With API Call
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00662553
Message ID:
00662558
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform