I did make a resource file, but i didn't define that variable in my source file. So i don think that is the cause of the problem. 1 more strange error happen, when i change the hmenu argument into NULL, the previous errors gone ?? But i get new error:
Ah i get it, it is the L macros, i don't usually use them, and never expect it could cause this weird errors. Sorry for causing some confusion, and thanks for helping me.