#include #include #include HINSTANCE hinstance; int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow ) { FILE *f; f = fopen("/storage card/devel/log.txt", "w"); fprintf(f, "Hello\r\n"); fclose(f); exit(0); } /* workaround */ int main() { WinMain(0, 0, 0, 0); } #if 1 char __EH_FRAME_BEGIN__[10]; #endif