Name: Anonymous 2006-06-20 20:56
c:
#include <stdio.h>
main() { printf("hey worldz\n"); }
#include <stdio.h>
main() { printf("hey worldz\n"); }
#define UNICODE
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow) {
HANDLE stdin, stdout;
TCHAR *msg = L"Hello, world!";
AllocConsole();
stdin = GetStdHandle(STD_INPUT_HANDLE);
stdout = GetStdHandle(STD_OUTPUT_HANDLE);
WriteConsole(stdout, msg, 12, NULL, NULL);
ReadConsole(stdin, NULL, 0, NULL, NULL);
FreeConsole();
ExitProcess(0);
return 0;
}