Replacing WinMain() with main() function in Win32 programs

后端 未结 4 1583
無奈伤痛
無奈伤痛 2020-11-28 04:56

I searched a little bit on StackOverflow and Google but couldn\'t get the idea. I want to start my application with this type of user programming:

int main()         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 05:32

    GetModuleHandle(NULL) will give you hInstance. hPrevInstance is always NULL.

提交回复
热议问题