EX.No:2DATE: SIMPLE WINDOW CREATION
AIM:
Write a VC++ program by using WIN32 application for creating a Simple awindow
ALGORITHM:
1.
Select start
Programs
Visual studio 6.0
visual C++ Developer Studio.2.Select new from the file menu.
3.
To begin, select New from File menu.4.In the New dialog box, pick the projects tab. Select Win32 Application.5.In the Location field, select subdirectory.6.In the project Name field, type the name of the project.7.The create New workshop button should be checked.8.The platforms section should indicate Win32. Choose OK.9.A dialog box labeled Win32 Application – step 1 0f 1 will appear.10.Indicate that you want to create an empty Project, and press the Finish button.11.Select New from the File menu again.12.In the New dialog box, pick the Files tab.13.Select C++ Source File.14.The Add to project box should be checked, and name of the project should beindicated.15.Type the name of the file name in the File Name field and choose OK.16.Now start to type the source code in .C extension file.17.To compile the file, select Build .exe from the Build menu, or press F7.18.Select Execute .exe from the Build menu or press ctrl+F5 or click Execute program from the Build tool bar to execute the program.
PROGRAM:
#include<windows.h>LRESULT CALLBACK wndproc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain(HINSTANCE hInstance,HINSTANCEhPrevInstance,LPSTR lpszCmdLIne,int iCmdShow){WNDCLASS wndclass;MSG msg;