MFC preliminary ---- implement Windows window to call in the C language file

  • ---- Windows Desktop New Project Wizard:

     

  •  Select a configuration item

     

  • Win7 operating system on the machine environment under vs2017, create a new .c file
  • Simple window program
#include <windows.h> int WINAPI WinMain (hInstance HINSTANCE, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) 
{ 
    MessageBox (NULL, TEXT ( " Register successful " ), TEXT ( " Welcome to the squirrel fight! " ), MB_OK );
     return 0 ; 
}

 

Guess you like

Origin www.cnblogs.com/saintdingspage/p/12114208.html