Welcome

This Tutorial is intended for anyone who has a working knowledge of the C programming language. It is also intended to help you develop Windows Apps using the WINAPI ASAP. The language used is C. This tutorial is applicable to any language that acesses the WINAPI. Free tutoring is available, just leave a message at the bottom of this page.

Getting Started

The basics and begining information. Get Started

A Simple Window

Describes how to create a window. Lesson One

Message Handling

Describes message handling in the main Window Procedure. Messages

Sample Code

This example simply displays a message box after compiling and running the project.

#include <windows.h>

int _stdcall WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
{
	MessageBox (NULL, TEXT("Hello"), TEXT("Hello, Windows!"), MB_OK);
	return 0;
}

Note: You may need to include the user32.lib for the linker when compiling this project.

See Also

  • Lesson Two
  • School:Computer science
  • Topic:Programming
This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.