Friday, October 15, 2010

The Basic Windows Application

Windows programming is not difficult at all. Let's see the most common and basic program in this world: the Hello, World! program. If you’ve seen any elementary DOS-based C or C++ code, chances are that you’ve seen this code:

// Hello, world! program
#include 
void main()
{
 printf("Hello, world!\n");
}

And this is how it look's "Hello, World!" Windows style.

#include  // main Windows headers

// the main entry point to your program
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
int nShowCmd)
{
 // show a very simple message box with the text “Hello, world!” displayed
 MessageBox(NULL, TEXT("\tHello, world!"), TEXT("My First Windows Application"), NULL);
 return 0;
}

compiled with vs 2008 express

The Penguins of Madagascar S01 EP04

The Penguins of Madagascar S01 EP03

Halo Legends

A collection of seven stories from the Halo Universe created by Japan's most creative minds. First up is "Origins" a two part episode showing the expansive history of the Halo Universe and the history of the 100,000 year long franchise timeline, told through the eyes of Cortana. Second comes "The Duel" Taking place long before the Human-Covenant War, it tells the story of an Arbiter, Fal 'Chavamee, who refuses to accept the Covenant Religion. Taking a turn to the Spartan side of the story "Homecoming" focuses on the tragedies involving the Spartan-II recruitment in 2517, and the Spartans coming to terms with their origins. Taking a turn in tone comes "Odd One Out" a non-cannon parody of the Halo storyline. "Prototype" tells the story of a Marine who goes against his orders to destroy an advanced prototype armor and uses the suit to buy time for civilians evacuating from the planet. "The Babysitter" tales of the the rivalry between the Spartan-II Commandos and the Orbital Drop Shock Troopers as they're sent to Covenant-controlled world to assassinate a Covenant Prophet. And finally "The Package" a two-part all CGI film follows Master Chief and an elite squad of Spartan-II super soldiers as they execute a top-secret mission to retrieve a highly valuable UNSC asset on a Covenant Assault Carrier.