[Assorted-commits] SF.net SVN: assorted:[1485] sandbox/trunk/src/win
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-10-14 07:32:00
|
Revision: 1485 http://assorted.svn.sourceforge.net/assorted/?rev=1485&view=rev Author: yangzhang Date: 2009-10-14 07:31:51 +0000 (Wed, 14 Oct 2009) Log Message: ----------- added mingw demo Added Paths: ----------- sandbox/trunk/src/win/mingw/ sandbox/trunk/src/win/mingw/hello.c Added: sandbox/trunk/src/win/mingw/hello.c =================================================================== --- sandbox/trunk/src/win/mingw/hello.c (rev 0) +++ sandbox/trunk/src/win/mingw/hello.c 2009-10-14 07:31:51 UTC (rev 1485) @@ -0,0 +1,13 @@ +#define UNICODE +#include <windows.h> +WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, + int nCmdShow) { + wchar_t str[] = L"hello, world!\n"; + DWORD count; + WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), + str, + sizeof str / sizeof(wchar_t), + &count, + NULL); + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |