I get this message lots of time when I am playing around with the API functions:


code]
error C2664: 'SetMenuDefaultItem' : cannot convert parameter 2 from 'struct HMENU__ *' to 'unsigned int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
[/code]


I get this error lots of times when I am working with the menus and backgrounds...stuff like that

Here is an example of problem that I am having:;

----------------------------------------------------------------------------

I want to make a menu item bold by first selecting a handle to the main menu and then getting a handle to the sub menu. I am using this code to do that but I am getting the above error message:

SetMenuDefaultItem(hmenu, GetSubMenu(hmenu, 0), true);


I have defined hemnu as HMENU (it is a global variable)

Can you please tell me why it is happening and how do I get rid of that erroe message that I often get.