john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Win CE minimum c program

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

/* SMALLEST APP
This gcc port only compiles WinMain
 so no stdio, no int main()
Print hi and a new line, wait
*/

int APIENTRY WinMain(
    HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPTSTR lpCmdLine, int ncmdshow )
{ 
    printf("hi\n");
    printf("Press return  to quit");
    getchar();
    return 0;
}

  • « win-ce c.bat
  • win msg box »

Published

Jun 3, 2010

Category

c

~44 words

Tags

  • c 95
  • minimum 3
  • win-ce 40