> wc.lpszMenuName = NULL;

Then why do you set the menu to NULL ?!