Hi all,
Im having problems with the below code. I am trying to add a new menu option to a menu. With the below code I get the menu, but its name is 4 squares (the unprintable control characters I believe?).
Can anyone help me out?
Code:int CreateModuleMenu(HWND hWnd ) { UINT_PTR uIDNewItem; LPCTSTR lpNewItem=NULL; char zName[9]; strcpy(zName, "&Modules"); lpNewItem = (LPCTSTR)zName; AppendMenu(GetMenu( hWnd ),MF_STRING,3,lpNewItem); lpNewItem = NULL; }