MVS 2008 C Create Windows Application Windows API


- Info:

- This tutorial shows how to use MVS 2008, C and Windows API to create Windows Application.

- Windows API stands for Windows Application Programming Interfaces.

- Windows API is collection of C functions for creating Windows Applications.

- Windows API is also informally known as WinAPI and Win32 API.

- This tutorial is based on


- Procedure Create CreateMessageBox.cpp:

- Create C File Test.c

- Start Without Debugging Ctrl+F5



#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int CmdShow) {

MessageBox(NULL, TEXT("First Program"), TEXT("First"), MB_OK );

return 0;