80 likes | 191 Vues
This guide covers the essentials of initializing the SNPL application within the Windows programming environment. It provides step-by-step instructions on setting up the graphical library and communicating with the kernel using exchange messages. You will learn to create a basic "Hello World" application using Visual C++, compile it, and run it. The guide details managing the initial function in the SNPL kernel, creating windows, and drawing graphics, such as rectangles, lines, and labels. Ideal for beginners and enthusiasts of Windows graphics programming.
E N D
Windows programming Graphic Library SNPL
Application program initialization Kernel Exchange Message Basic Structure Windows Programming 1.part of initialization 2.part of exchange message for communicate with kernel SNPL
WinMain WndProc WinMain and WndProc • Manage initial function and initial message Part of initialize kernel SNPL
Using Visual c++ 1.File New 2.Project 3.Win32 Application 4.Project name 5.a typical”Hello world”application 6.finish Ok 7.Fileview 8.source files 9.example.cpp SNPL
Compile and Run 1.F7 compile 2.Ctrl+F5 run SNPL
WinMain MakeWindow INITIAL transferwindow Graphic Library Executive Make windows and show screen in monitor Start Program Initialize shape of graph Be transmitted from message to WndPro SNPL
RECTANGLE ticxy Hvlabel plot draw Header File Draw rectangle Draw tic Draw label outside x , y axis of coordinates The value of coordinates get and then mark with a point Draw line between point and point SNPL
Using Graphic Library 1.WinMain 2.#include “graph.h” 3. INITIAL() 4.set variable 5.Set function in graph.h 6.F7 compile 7.ctrl+F5 run Application program SNPL