Hi, Oreste -
API functions calls can be different in 64-bit, because the datatypes Windows uses for some values (like pointers and handles, for example) are 64-bit instead of 32-bit.
Here is the external function declaration (EFD) you should use for the GetSubMenu WinAPI function:
FUNCTION Longptr GetSubMenu ( &
Longptr hMenu, &
Long nPos &
) LIBRARY "user32.dll"
If you are not familiar with the Longptr datatype, it gets translated during compile-time to either a Long (32-bit) or LongLong (64-bit). Obviously, you then have to change the code that calls the external function to use the appropriate datatypes.
I've written a four-part tutorial about interfacing PB to the Windows API, which is available in Tech Articles section of the Articles & Blogs portion of the Appeon Community web site, if you're interested.
Regards, John
thanks for the clarification, I will try to make the changes you suggest and then I will carefully study your tutorials.
Best Regards
Oreste