Programming in graphical environment. Introduction

Size: px
Start display at page:

Download "Programming in graphical environment. Introduction"

Transcription

1 Programming in graphical environment Introduction

2 The lecture Additional resources available at: Recommended books: Programming Windows - Charles Petzold Developing User Interfaces for Microsoft Windows - Everett N. McKay

3 The lecture and lab Programming Windows applications Tools and interfaces: Visual C++ (version 6.0 and.net) Win 32 Application Programming Interface (Win32 API), without additional libraries like MFC, ATL.

4 Lecture 1 Differences between console (DOS) and event-driven (Windows) application Basic structure of Windows application Message handler function Introduction to drawing

5 Differences between command line and event-driven programs

6 Console application Program flow is hard coded by the programmer Program calls operating system functions Programmer decides when to process input from the user

7 Event-driven application Program flow depends on the user Operating system sends messages to the application calling its functions User input is processed by the operating system and is delivered to the application (as messages) Most of the time application waits for the next message

8 Example Console application To check if a key was pressed, use the kbhit() function and read the key using getch() function Windows application For each key that is pressed Windows sends to your application the WM_KEYDOWN message Your application must extract the character for each message and add them to create a string

9 DOS style readline function void read_string( char *str, int maxlen ) { for ( int i = 0; i < maxlen - 1; i++ ) { str[ i ] = getche(); if ( str[ i ] == '\n' ) { str[ i ] = 0; return; } } str[ i ] = 0; }

10 Windows-style readline function char str[ 256 ]; int counter = 0; LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { switch (message) { case WM_CHAR: if ( counter < sizeof( str )) break; case... str[ counter++ ] = wparam;

11 Structure of Windows application Initialization (done by Visual C++ wizard) Register and create main application window, direct all messages to Window Procedure Message Loop (done by Visual C++ wizard) Window procedure Every message sent to the window is handled by the window procedure. Empty window procedure is created by Visual C++ wizard. To create simple application, just write your message handlers

12 Window Procedure LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); Window procedure is called once for each message your window receives HWND hwnd window handle UINT message message identifier WPARAM wparam first message parameter (32 bit integer) LPARAM lparam second message parameter (32 bit integer) Message parameters depend on message type.

13 Typical Window Procedure LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { switch (message) { case WM_COMMAND: OnCommand( hwnd, wparam, lparam ); break; case WM_PAINT: OnPaint( hwnd, wparam, lparam ); break; case WM_CREATE: OnCreate( hwnd, wparam, lparam ); break; case WM_DESTROY: OnDestroy( hwnd, wparam, lparam ); break; default: return DefWindowProc(hWnd, message, wparam, lparam); } return 0; }

14 Window procedure cont. Four messages are handled: WM_COMMAND, WM_PAINT, WM_CREATE and WM_DESTROY Messages that are not handled go to DefWindowProc - default message handler Usually you will handle more than four messages, so it is better to write separate function for each message to keep the switch instruction small

15 Important messages WM_CREATE WM_DESTROY WM_PAINT WM_LBUTTONDOWN WM_LBUTTONUP WM_MOUSEMOVE WM_TIMER

16 WM_CREATE Sent right after window has been created Application should perform window initialization in WM_CREATE message handler Sample: case WM_CREATE: SetTimer( hwnd, 1, 1000, NULL ); break;

17 WM_LBUTTONDOWN Sent when left mouse button is pressed Sample: case WM_LBUTTONDOWN: int x = LOWORD( lparam ); int y = HIWORD( lparam ); break;

18 WM_TIMER Window can request WM_TIMER messages using SetTimer function UINT SetTimer( HWND hwnd, // - window handle UINT idevent, // - event id UINT uelapse, // - timeout (milisec.) TIMERPROC lptimerproc); WM_TIMER message WPARAM timer ID (used when multiple timers are present) LPARAM equal to lptimerproc

19 WM_PAINT Sent when some portion of the window is invalid and needs to be repainted Windows keeps track of invalid regions Painting is done not on screen or window but on device context

20 WM_PAINT cont. Typical WM_PAINT handler case WM_PAINT: PAINTSTRUCT ps; HDC hdc; // device context hdc = BeginPaint(hWnd, &ps); MoveToEx( hdc, 0, 0, NULL ); LineTo( hdc, 100, 100 ); EndPaint(hWnd, &ps);

21 WM_PAINT cont Windows knows when to repaint a window To force a window to be repainted, Invalidate the window. To repaint your window in response to timer messages, use: LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { switch (message) { case WM_TIMER: InvalidateRect( hwnd, NULL, TRUE ); break; case /* handle other messages */... default: return DefWindowProc(hWnd, message, wparam, lparam); } return 0; }

Advantech Windows CE.net Application Hand on Lab

Advantech Windows CE.net Application Hand on Lab Advantech Windows CE.net Application Hand on Lab Lab : Serial Port Communication Objectives After completing this lab, you will be able to: Create an application to open, initialize the serial port, and

More information

We display some text in the middle of a window, and see how the text remains there whenever the window is re-sized or moved.

We display some text in the middle of a window, and see how the text remains there whenever the window is re-sized or moved. 1 Programming Windows Terry Marris January 2013 2 Hello Windows We display some text in the middle of a window, and see how the text remains there whenever the window is re-sized or moved. 2.1 Hello Windows

More information

MOBILE COMPUTING Practical 1: Graphic representation

MOBILE COMPUTING Practical 1: Graphic representation MOBILE COMPUTING Practical 1: Graphic representation Steps 2) Then in class view select the Global, in global select the WINMAIN. 3) Then write the below code below #define MAX_LOADSTRING 100 enum Shapes

More information

Input and Interaction

Input and Interaction Input and Interaction 5 th Week, 2011 Graphical Input Devices Mouse Trackball Light Pen Data Tablet Joy Stick Space Ball Input Modes Input devices contain a trigger which can be used to send a signal to

More information

Computer Programming Lecture 11 이윤진서울대학교

Computer Programming Lecture 11 이윤진서울대학교 Computer Programming Lecture 11 이윤진서울대학교 2007.1.24. 24 Slide Credits 엄현상교수님 서울대학교컴퓨터공학부 Computer Programming, g, 2007 봄학기 Object-Oriented Programming (2) 순서 Java Q&A Java 개요 Object-Oriented Oriented Programming

More information

LSN 4 GUI Programming Using The WIN32 API

LSN 4 GUI Programming Using The WIN32 API LSN 4 GUI Programming Using The WIN32 API ECT362 Operating Systems Department of Engineering Technology LSN 4 Why program GUIs? This application will help introduce you to using the Win32 API Gain familiarity

More information

Different Ways of Writing Windows Programs

Different Ways of Writing Windows Programs How Windows Works Notes for CS130 Dr. Beeson Event-Driven Programming. In Windows, and also in Java applets and Mac programs, the program responds to user-initiated events: mouse clicks and key presses.

More information

Hands-On Lab. Multitouch Gestures - Native. Lab version: Last updated: 12/3/2010

Hands-On Lab. Multitouch Gestures - Native. Lab version: Last updated: 12/3/2010 Hands-On Lab Multitouch Gestures - Native Lab version: 1.0.0 Last updated: 12/3/2010 CONTENTS OVERVIEW... 3 EXERCISE 1: BUILD A MULTITOUCH APPLICATION... 7 Task 1 Create the Win32 Application... 7 Task

More information

Aspect-Oriented Programming with C++ and AspectC++ AOSD 2007 Tutorial. Part V Examples. Examples V/1

Aspect-Oriented Programming with C++ and AspectC++ AOSD 2007 Tutorial. Part V Examples. Examples V/1 Aspect-Oriented Programming with C++ and AspectC++ AOSD 2007 Tutorial Part V V/1 AspectC++ in Practice - Applying the observer protocol Example: a typical scenario for the widely used observer pattern

More information

Introduction to Computer Graphics (CS602) Lecture No 04 Point

Introduction to Computer Graphics (CS602) Lecture No 04 Point Introduction to Computer Graphics (CS602) Lecture No 04 Point 4.1 Pixel The smallest dot illuminated that can be seen on screen. 4.2 Picture Composition of pixels makes picture that forms on whole screen

More information

An Introduction to Windows Programming Using VC++ Computer Graphics. Binghamton University. EngiNet. Thomas J. Watson

An Introduction to Windows Programming Using VC++ Computer Graphics. Binghamton University. EngiNet. Thomas J. Watson Binghamton University EngiNet State University of New York EngiNet Thomas J. Watson School of Engineering and Applied Science WARNING All rights reserved. No Part of this video lecture series may be reproduced

More information

Windows Programming in C++

Windows Programming in C++ Windows Programming in C++ You must use special libraries (aka APIs application programming interfaces) to make something other than a text-based program. The C++ choices are: The original Windows SDK

More information

Windows Programming. 1 st Week, 2011

Windows Programming. 1 st Week, 2011 Windows Programming 1 st Week, 2011 시작하기 Visual Studio 2008 새프로젝트 파일 새로만들기 프로젝트 Visual C++ 프로젝트 Win32 프로젝트 빈프로젝트 응용프로그램설정 Prac01 솔루션 새항목추가 C++ 파일 main.cpp main0.cpp cpp 다운로드 솔루션빌드 오류 Unicode vs. Multi-Byte

More information

Windows and Messages. Creating the Window

Windows and Messages. Creating the Window Windows and Messages In the first two chapters, the sample programs used the MessageBox function to deliver text output to the user. The MessageBox function creates a "window." In Windows, the word "window"

More information

Introducing MFC. Programming Windows with MFC, Second Edition. Jeff Prosise

Introducing MFC. Programming Windows with MFC, Second Edition. Jeff Prosise Introducing MFC Programming Windows with MFC, Second Edition. Jeff Prosise 1 Hello, MFC Short Years Ago Windows Applications written in C: Knowing the ins and outs of new operating system Knowing hundreds

More information

Windows Socket Message-Driven/WSAAsyncSelect Model. Prof. Lin Weiguo Copyleft 2009~2015, College of Computing, CUC

Windows Socket Message-Driven/WSAAsyncSelect Model. Prof. Lin Weiguo Copyleft 2009~2015, College of Computing, CUC Windows Socket Message-Driven/WSAAsyncSelect Model Prof. Lin Weiguo Copyleft 2009~2015, College of Computing, CUC Dec 2015 Note You should not assume that an example in this presentation is complete. Items

More information

Using DAQ Event Messaging under Windows NT/95/3.1

Using DAQ Event Messaging under Windows NT/95/3.1 Application Note 086 Using DAQ Event Messaging under Windows NT/95/3.1 by Ken Sadahiro Introduction The NI-DAQ language interface for PCs is mostly a "polling-oriented" Application Programming Interface,

More information

Window programming. Programming

Window programming. Programming Window programming 1 Objectives Understand the mechanism of window programming Understand the concept and usage of of callback functions Create a simple application 2 Overview Windows system Hello world!

More information

Game Programming I. Introduction to Windows Programming. Sample Program hello.cpp. 5 th Week,

Game Programming I. Introduction to Windows Programming. Sample Program hello.cpp. 5 th Week, Game Programming I Introduction to Windows Programming 5 th Week, 2007 Sample Program hello.cpp Microsoft Visual Studio.Net File New Project Visual C++ Win32 Win32 Project Application Settings Empty project

More information

Developing a Prototype Window s Mobile Application

Developing a Prototype Window s Mobile Application Developing a Prototype Window s Mobile Application (Part 1 of Snoozing Soundly through Snore recognition ) Riley Kotchorek, Mike Smith, Vahid Garousi University of Calgary, Canada Contact: Michael Smith,

More information

Lecture 4. Drawing - coordinate systems Advanced drawing - bitmaps, regions, clipping, metafiles

Lecture 4. Drawing - coordinate systems Advanced drawing - bitmaps, regions, clipping, metafiles Lecture 4 Drawing - coordinate systems Advanced drawing - bitmaps, regions, clipping, metafiles Coordinate systems int SetMapMode( HDC hdc, int nmapmode ); MM_TEXT MM_LOMETRIC MM_HIMETRIC MM_ANISOTROPIC

More information

CS410 Visual Programming Solved Online Quiz No. 01, 02, 03 and 04. For Final Term Exam Preparation by Virtualians Social Network

CS410 Visual Programming Solved Online Quiz No. 01, 02, 03 and 04. For Final Term Exam Preparation by Virtualians Social Network CS410 Visual Programming Solved Online Quiz No. 01, 02, 03 and 04 For Final Term Exam Preparation by Virtualians Social Network 1. Ptr -> age is equivalent to *ptr.age ptr.age (ptr).age (*ptr).age 2. is

More information

Module 2: Getting Started with Visual C AppWizard

Module 2: Getting Started with Visual C AppWizard Module 2: Getting Started with Visual C++ 6.0 AppWizard Program examples compiled using Visual C++ 6.0 (MFC 6.0) compiler on Windows XP Pro machine with Service Pack 2. Topics and sub topics for this Tutorial

More information

Chapter 15 Programming Paradigm

Chapter 15 Programming Paradigm Chapter 15 Programming Paradigm A Windows program, like any other interactive program, is for the most part inputdriven. However, the input of a Windows program is conveniently predigested by the operating

More information

Hands-On Lab. Multi-Touch WMTouch - Native. Lab version: Last updated: 12/3/2010

Hands-On Lab. Multi-Touch WMTouch - Native. Lab version: Last updated: 12/3/2010 Hands-On Lab Multi-Touch WMTouch - Native Lab version: 1.0.0 Last updated: 12/3/2010 CONTENTS OVERVIEW... 3 EXERCISE 1: BUILD A MULTI-TOUCH APPLICATION... 5 Task 1 Create the Win32 Application... 5 Task

More information

HANNAH HOWARD #ABOUTME

HANNAH HOWARD #ABOUTME HANNAH HOWARD #ABOUTME Personal @techgirlwonder hannah@carbon Anecdote: I have ve.com a dog she/her REACTIVE PROGRAMMING: A Better Way to Write Frontend Applications 1. PROBLEM STATEMENT WHAT IS A COMPUTER

More information

/*********************************************************************

/********************************************************************* Appendix A Program Process.c This application will send X, Y, Z, and W end points to the Mx4 card using the C/C++ DLL, MX495.DLL. The functions mainly used are monitor_var, change_var, and var. The algorithm

More information

Mobile Application Development (Part 1)-Program a Sound-Monitoring Prototype

Mobile Application Development (Part 1)-Program a Sound-Monitoring Prototype See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/293654427 Mobile Application Development (Part 1)-Program a Sound-Monitoring Prototype Article

More information

hinstance = ((LPCREATESTRUCT)lParam)->hInstance obtains the program's instance handle and stores it in the static variable, hinstance.

hinstance = ((LPCREATESTRUCT)lParam)->hInstance obtains the program's instance handle and stores it in the static variable, hinstance. 1 Programming Windows Terry Marris Jan 2013 6 Menus Three programs are presented in this chapter, each one building on the preceding program. In the first, the beginnings of a primitive text editor are

More information

Adventures in Messaging

Adventures in Messaging Adventures in Messaging CHAPTER 3 IN THIS CHAPTER What Is a Message? 130 Types of Messages 131 How the Windows Message System Works 132 Delphi s Message System 133 Handling Messages 134 Sending Your Own

More information

Binghamton University. EngiNet. State University of New York

Binghamton University. EngiNet. State University of New York Binghamton University EngiNet State University of New York 1 Thomas J. Watson School of Engineering and Applied Science EngiNet WARNING All rights reserved. No Part of this video lecture series may be

More information

IFE: Course in Low Level Programing. Lecture 5

IFE: Course in Low Level Programing. Lecture 5 Lecture 5 Windows API Windows Application Programming Interface (API) is a set of Windows OS service routines that enable applications to exploit the power of Windows operating systems. The functional

More information

2. On the main menu, click File -> New... or File -> New -> Other... Windows Fundamentals

2. On the main menu, click File -> New... or File -> New -> Other... Windows Fundamentals Windows Fundamentals http://www.functionx.com/win32/index.htm http://www.functionx.com/visualc/index.htm Introduction to windows Overview Microsoft Windows is an operating system that helps a person interact

More information

Client and Server (DirectX)

Client and Server (DirectX) Client and Server (DirectX) Vishnu Kotrajaras Server scalability Your game can handle more players at a time (Over internet, most peer-topeer can only handle about 6 players) All depend on server power

More information

Detecting USB Device Insertion and Removal Using Windows API

Detecting USB Device Insertion and Removal Using Windows API Written by Tom Bell Detecting USB Device Insertion and Removal Using Windows API When I needed to know how to detect USB device insertion and removal, I was developing an application for backing up USB

More information

Getting Started. 1 st Week, Sun-Jeong Kim. Computer Graphics Applications

Getting Started. 1 st Week, Sun-Jeong Kim. Computer Graphics Applications OpenGL Programming Getting Started 1 st Week, 2008 Sun-Jeong Kim Visual Studio 2005 Windows Programming 2 Visual C++ Win32 Application New Project 3 Empty project Application Settings 4 Solution Prac01

More information

CMSC434. Introduction to Human-Computer Interaction. Week 10 Lecture 16 Mar 29, 2016 Engineering Interfaces II. Jon

CMSC434. Introduction to Human-Computer Interaction. Week 10 Lecture 16 Mar 29, 2016 Engineering Interfaces II. Jon CMSC434 Introduction to Human-Computer Interaction Week 10 Lecture 16 Mar 29, 2016 Engineering Interfaces II Jon Froehlich @jonfroehlich Human Computer Interaction Laboratory COMPUTER SCIENCE UNIVERSITY

More information

4 th (Programmatic Branch ) Advance Windows Programming class

4 th (Programmatic Branch ) Advance Windows Programming class Save from: www.uotechnology.edu.iq 4 th (Programmatic Branch ) Advance Windows Programming class برمجة نوافذ المتقدمة أعداد :م.علي حسن حمادي 2006... 2010 >==> 2012 2013 CONTENTS: The Components of a Window

More information

Graphics Software. Interaction schemes. Input handling. Graphics application interfaces. Output handling. General scheme of CG applications

Graphics Software. Interaction schemes. Input handling. Graphics application interfaces. Output handling. General scheme of CG applications General scheme of CG applications Graphics Software Balázs Csébfalvi Department of Control Engineering and Information Technology email: cseb@iit.bme.hu Web: http://www.iit.bme.hu/~cseb 2 / 38 Interaction

More information

Course 3D_OpenGL: 3D-Graphics with C++ and OpenGL Chapter 1: Moving Triangles

Course 3D_OpenGL: 3D-Graphics with C++ and OpenGL Chapter 1: Moving Triangles 1 Course 3D_OpenGL: 3D-Graphics with C++ and OpenGL Chapter 1: Moving Triangles Project triangle1 Animation Three Triangles Hundred Triangles Copyright by V Miszalok, last update: 2011-03-20 This project

More information

SFU CMPT Topic: More MFC Programming

SFU CMPT Topic: More MFC Programming SFU CMPT-212 2008-1 1 Topic: More MFC Programming SFU CMPT-212 2008-1 Topic: More MFC Programming Ján Maňuch E-mail: jmanuch@sfu.ca Sunday 30 th March, 2008 SFU CMPT-212 2008-1 2 Topic: More MFC Programming

More information

Based on the following Circuit Cellar Articles. Developing a Mobile Phone Application. The story Spark podcast 49. The articles

Based on the following Circuit Cellar Articles. Developing a Mobile Phone Application. The story Spark podcast 49. The articles Based on the following Circuit Cellar Articles Developing a Mobile Phone Application Compare and contrast to ENCM515 Lab ideas Kotchorek, R., M. R. Smith, V. Garousi, "Development of a basic mobile phone

More information

C Windows 16. Visual C++ VC Borland C++ Compiler BCC 2. Windows. c:\develop

C Windows 16. Visual C++ VC Borland C++ Compiler BCC 2. Windows. c:\develop Windows Ver1.01 1 VC BCC DOS C C Windows 16 Windows98/Me/2000/XP MFC SDL Easy Link Library Visual C++ VC Borland C++ Compiler BCC 2 2 VC MFC VC VC BCC Windows DOS MS-DOS VC BCC VC BCC VC 2 BCC5.5.1 c:\develop

More information

Graphics Software. Interaction schemes. General scheme of CG applications. Balázs Csébfalvi

Graphics Software. Interaction schemes. General scheme of CG applications. Balázs Csébfalvi Graphics Software Balázs Csébfalvi Department of Control Engineering and Information Technology email: cseb@iit.bme.hu Web: http://www.iit.bme.hu/~cseb General scheme of CG applications 2 / 38 Interaction

More information

Question No: 1 (Marks: 1) - Please choose one For showing Dialog we can use "ShowWindow(...)" function.

Question No: 1 (Marks: 1) - Please choose one For showing Dialog we can use ShowWindow(...) function. MUHAMMAD FAISAL MIT 4 th Semester Al-Barq Campus (VGJW01) Gujranwala faisalgrw123@gmail.com CS410 Mega File of Solved Mid Term Papers CS410 - WINDOWS PROGRAMMING Question No: 1 (Marks: 1) - Please choose

More information

uvi ... Universal Validator Interface Software Developers Kit Revision /29/04 Happ Controls

uvi ... Universal Validator Interface Software Developers Kit Revision /29/04 Happ Controls Happ Controls 106 Garlisch Drive Elk Grove, IL 60007 Tel: 888-289-4277 / 847-593-6130 Fax: 847-593-6137 www.happcontrols.com uvi Universal Validator Interface Software Developers Kit.......... Revision

More information

CMSC434. Introduction to Human-Computer Interaction. Week 10 Lecture 17 Mar 31, 2016 Engineering Interfaces III. Jon

CMSC434. Introduction to Human-Computer Interaction. Week 10 Lecture 17 Mar 31, 2016 Engineering Interfaces III. Jon CMSC434 Introduction to Human-Computer Interaction Week 10 Lecture 17 Mar 31, 2016 Engineering Interfaces III Jon Froehlich @jonfroehlich Human Computer Interaction Laboratory COMPUTER SCIENCE UNIVERSITY

More information

CMPT 212 Introduction to MFC and Windows Programming. Spring 2007

CMPT 212 Introduction to MFC and Windows Programming. Spring 2007 CMPT 212 Introduction to MFC and Windows Programming Spring 2007 What is MFC? MFC: Microsoft Foundation Classes MFC is a framework built on top of standard windows C++ libraries Provides the user with

More information

Creating a DirectX Project

Creating a DirectX Project Creating a DirectX Project A DirectPLay Chat Program Setting up your Compiler for DirectX Install DirectX SDK Make sure your compiler has path to directx8/include Directx8/lib Directx8/samples/multimedia/common/src

More information

Qno.2 Write a complete syantax of "Getparents" functions? What kind of value it return and when this function is use? Answer:-

Qno.2 Write a complete syantax of Getparents functions? What kind of value it return and when this function is use? Answer:- CS410 Visual Programming Solved Subjective Midterm Papers For Preparation of Midterm Exam Qno.1 How can I use the CopyTo method of the Windows Forms controls collection to copy controls into an array?

More information

Painting your window

Painting your window The Paint event "Painting your window" means to make its appearance correct: it should reflect the current data associated with that window, and any text or images or controls it contains should appear

More information

Key Switch Control Software Windows driver software for Touch Panel Classembly Devices

Key Switch Control Software Windows driver software for Touch Panel Classembly Devices IFKSMGR.WIN Key Switch Control Software Windows driver software for Touch Panel Classembly Devices Help for Windows www.interface.co.jp Contents Chapter 1 Introduction 3 1.1 Overview... 3 1.2 Features...

More information

An Introduction to MFC (builds on your lecture on MFC)

An Introduction to MFC (builds on your lecture on MFC) An Introduction to MFC (builds on your lecture on MFC) Tutorial (First Steps in Visual C++ MFC) [For hands on experience go through sample Scribble given in MSDN I cannot write anything better than that]

More information

Tutorial 7: Mouse Input

Tutorial 7: Mouse Input Tutorial 7: Mouse Input This win32 tutorial was created and written by Iczelion for MASM32. It was translated for use by HLA (High Level Assembly) users by Randall Hyde. All original copyrights and other

More information

Application Note QWinTM GUI Kit for Prototyping Embedded Systems on Windows

Application Note QWinTM GUI Kit for Prototyping Embedded Systems on Windows QP state machine frameworks for Microsoft Windows QWinTM GUI Kit for Prototyping Document Revision H June 2017 Copyright Quantum Leaps, LLC info@state-machine.com www.state-machine.com Table of Contents

More information

Programming In Windows. By Minh Nguyen

Programming In Windows. By Minh Nguyen Programming In Windows By Minh Nguyen Table of Contents **************************************************************** Overview.. 3 Windows Programming Setup..3 Sample Skeleton Program.3 In Depth Look

More information

Designing Interactive Systems II

Designing Interactive Systems II Designing Interactive Systems II Computer Science Graduate Programme SS 2010 Prof. Dr. RWTH Aachen University http://hci.rwth-aachen.de 1 Review: Conviviality (Igoe) rules for networking role of physical

More information

Front Panel: Free Kit for Prototyping Embedded Systems on Windows

Front Panel: Free Kit for Prototyping Embedded Systems on Windows QP state machine frameworks for Microsoft Windows Front Panel: Document Revision D February 2015 Copyright Quantum Leaps, LLC info@state-machine.com www.state-machine.com Table of Contents 1 Introduction...

More information

Event Binding. Different Approaches Global Hooks. 2.5 Event Binding 1

Event Binding. Different Approaches Global Hooks. 2.5 Event Binding 1 Event Binding Different Approaches Global Hooks 2.5 Event Binding 1 Event Dispatch vs. Event Binddling Event Dispatch phase addresses: - Which window receives an event? - Which widget processes it? Positional

More information

CS410 Visual Programming Solved Objective Midterm Papers For Preparation of Midterm Exam

CS410 Visual Programming Solved Objective Midterm Papers For Preparation of Midterm Exam CS410 Visual Programming Solved Objective Midterm Papers For Preparation of Midterm Exam 1. If we pass NULL value to "GetDC" function, it retrieves the DC for the: Entire Screen Parent Window Client Window

More information

Vive Input Utility Developer Guide

Vive Input Utility Developer Guide Vive Input Utility Developer Guide vivesoftware@htc.com Abstract Vive Input Utility is a tool based on the SteamVR plugin that allows developers to access Vive device status in handy way. We also introduce

More information

Alisson Sol Knowledge Engineer Engineering Excellence June 08, Public version

Alisson Sol Knowledge Engineer Engineering Excellence June 08, Public version Alisson Sol Knowledge Engineer Engineering Excellence June 08, 2011 Public version Information about the current inflection point Mature Mainframe, desktop, graphical user interface, client/server Evolving

More information

Introduction to C# Applications

Introduction to C# Applications 1 2 3 Introduction to C# Applications OBJECTIVES To write simple C# applications To write statements that input and output data to the screen. To declare and use data of various types. To write decision-making

More information

SIGMA SIGMAP02 Plugin Developer's Manual

SIGMA SIGMAP02 Plugin Developer's Manual SIGMA SIGMAP02 Plugin Developer's Manual Application Note Address: ASIX s.r.o. Staropramenna 4 150 00 Prague Czech Republic E-Mail: WWW: sales@asix.net (sales inquiries, ordering) support@asix.net (technical

More information

We take a look at implementing some file menu options: New, Open, Save, Save As and Exit.

We take a look at implementing some file menu options: New, Open, Save, Save As and Exit. 1 Programming Windows Terry Marris Jan 2013 7 Files We take a look at implementing some file menu options: New, Open, Save, Save As and Exit. 7.1 Header File The header file is largely unchanged from chapter

More information

Task Toolkit Manual for InduSoft Web Studio v6.1+sp3

Task Toolkit Manual for InduSoft Web Studio v6.1+sp3 Task Toolkit Manual for InduSoft Web Studio v6.1+sp3 This manual documents the public Studio Toolkit functions and example program. 1. Introduction The Studio Toolkit is a set of functions provided in

More information

Click Next to Continue

Click Next to Continue Exploits & Information about Shatter Attacks Click Next to Continue Chris Paget Introduction Software 3 exploits to be released Techniques for code injection and execution User impersonation

More information

Win32 Multilingual IME Overview for IME Development

Win32 Multilingual IME Overview for IME Development 1 Win32 Multilingual IME Overview for IME Development Version 1.41 04-01-1999 This documentation introduces the basics on how to develop an IME for Windows 95, Windows 98, and Windows NT/2000. It is also

More information

LAB MANUAL VISUAL PROGRAMMING LAB( CSE 409 F) DEPARTMENT OF COMPUTER SCIECE AND ENGINEERING

LAB MANUAL VISUAL PROGRAMMING LAB( CSE 409 F) DEPARTMENT OF COMPUTER SCIECE AND ENGINEERING LAB MANUAL VISUAL PROGRAMMING LAB( CSE 409 F) DEPARTMENT OF COMPUTER SCIECE AND ENGINEERING 1 Check list for Lab Manual S. No. Particulars Page Number 1 Mission and Vision 3 2 Guidelines for the student

More information

Game Programming Genesis Part II : Using Resources in Win32 Programs by Joseph "Ironblayde" Farrell

Game Programming Genesis Part II : Using Resources in Win32 Programs by Joseph Ironblayde Farrell Game Programming Genesis Part II : Using Resources in Win32 Programs GameDev.net Introduction Game Programming Genesis Part II : Using Resources in Win32 Programs by Joseph "Ironblayde" Farrell Welcome

More information

System Monitoring Library Windows Driver Software for Industrial Controllers

System Monitoring Library Windows Driver Software for Industrial Controllers IFPMGR.WIN System Monitoring Library Windows Driver Software for Industrial ontrollers Help for Windows www.interface.co.jp ontents hapter 1 Introduction...4 1.1 Overview... 4 1.2 Features... 4 hapter

More information

SHORT QUESTIONS & ANSWERS

SHORT QUESTIONS & ANSWERS P.S.N.A. COLLEGE OF ENGINEERING & TECHNOLOGY, Kothandaraman Nagar, Muthanampatti(PO), Dindigul 624 622. Phone: 0451-2554032, 2554349 Web Link: www.psnacet.edu.in SHORT QUESTIONS & ANSWERS Subject code

More information

Lambda Expression & Concurrency API. 김명신부장 Principal Technical Evangelist

Lambda Expression & Concurrency API. 김명신부장 Principal Technical Evangelist Lambda Expression & Concurrency API 김명신부장 Principal Technical Evangelist 완전친절한 Lambda Expression 완전불친절한 Concurrency API 완전간단한 실천적접근 Alonzo Church [lambda-capture] { body } [lambda-capture] (params) {

More information

CSci 4061 Introduction to Operating Systems. IPC: Basics, Pipes

CSci 4061 Introduction to Operating Systems. IPC: Basics, Pipes CSci 4061 Introduction to Operating Systems IPC: Basics, Pipes Today Directory wrap-up Communication/IPC Test in one week Communication Abstraction: conduit for data exchange between two or more processes

More information

Customizable Toolbar: Implementing a toolbar combo button

Customizable Toolbar: Implementing a toolbar combo button Customizable Toolbar: Implementing a toolbar combo button Problem How do I implement a Combo Button on my toolbar? I'm having trouble getting notifications, filling the list, adding to the list, or handling

More information

Developer Documentation

Developer Documentation Developer Documentation Development of Scanner Applications for ACD Windows CE Second Edition Devices Version: 3.0 Copyright ACD Gruppe This document may not be duplicated or made accessible to third parties

More information

Events. Dispatch, event-to-code binding. Review: Events Defined 1/17/2014. occurrence.

Events. Dispatch, event-to-code binding. Review: Events Defined 1/17/2014. occurrence. Events Dispatch, event-to-code binding Review: Events Defined 1. An observable occurrence, phenomenon, or an extraordinary occurrence. 2. A message to notify an application that something happened. Examples:

More information

Digital Storage Oscilloscope. Appendix

Digital Storage Oscilloscope. Appendix Digital Storage Oscilloscope Appendix Thomas Grocutt April 2000 Contents 8) Appendix 1 8.1) DSO Control Software 1 8.1.1) Main.c 1 8.1.2) Main.h 3 8.1.3) GUI.c 4 8.1.4) Gui.h 33 8.1.5) Plot_Data.c 35 8.1.6)

More information

arxiv: v1 [physics.med-ph] 22 Aug 2016

arxiv: v1 [physics.med-ph] 22 Aug 2016 arxiv:1608.06248v1 [physics.med-ph] 22 Aug 2016 Visual C++ Implementation of Sinogram-based Adaptive Iterative Reconstruction for Sparse View X-Ray CT D. Trinca a,, Y. Zhong b, Y. Wang b, T. Mamyrbayev

More information

Call DLL from Limnor Applications

Call DLL from Limnor Applications Call DLL from Limnor Applications There is a lot of computer software in the format of dynamic link libraries (DLL). DLLCaller performer allows your applications to call DLL functions directly. Here we

More information

DirectX Programming #1. Hyunna Lee Computer Graphics, 2010 Spring

DirectX Programming #1. Hyunna Lee Computer Graphics, 2010 Spring DirectX Programming #1 Hyunna Lee Computer Graphics, 2010 Spring Contents } Installation and Settings } Introduction to Direct3D 9 Graphics } Initializing Direct3D } Rendering Vertices } The D3D coordinate

More information

softmc Servotronix Motion API Reference Manual Revision 1.0

softmc Servotronix Motion API Reference Manual Revision 1.0 Servotronix Motion API Reference Manual Revision 1.0 Revision History Document Revision Date 1.0 Nov. 2014 Initial release Copyright Notice Disclaimer Trademarks 2014 Servotronix Motion Control Ltd. All

More information

Homework Assignment #1

Homework Assignment #1 CISC 2200 Data Structure Fall, 2016 Homework Assignment #1 1 The mistery of lossing one cent. Please refer to the lab1 instruction for an example floating value ($2.34), and how the cents part extracted

More information

64 Bit Delphi What does it all mean?

64 Bit Delphi What does it all mean? 64 Bit Delphi What does it all mean? 1 David Intersimone David I VP of Developer Relations and Chief Evangelist davidi@embarcadero.com http://blogs.embarcadero.com/davidi Twitter: davidi99 Skype: davidi99

More information

Chapter 7 Applets. Answers

Chapter 7 Applets. Answers Chapter 7 Applets Answers 1. D The drawoval(x, y, width, height) method of graphics draws an empty oval within a bounding box, and accepts 4 int parameters. The x and y coordinates of the left/top point

More information

Windows Printer Driver User Guide for NCR Retail Printers. B Issue G

Windows Printer Driver User Guide for NCR Retail Printers. B Issue G Windows Printer Driver User Guide for NCR Retail Printers B005-0000-1609 Issue G The product described in this book is a licensed product of NCR Corporation. NCR is a registered trademark of NCR Corporation.

More information

CS1253-VISUAL PROGRAMMING S4 CSE & S6 IT 2 MARKS & 16 MARKS PREPARED BY S.VINILA JINNY, L/CSE Y. JEYA SHEELA, L/IT

CS1253-VISUAL PROGRAMMING S4 CSE & S6 IT 2 MARKS & 16 MARKS PREPARED BY S.VINILA JINNY, L/CSE Y. JEYA SHEELA, L/IT CS1253-VISUAL PROGRAMMING S4 CSE & S6 IT 2 MARKS & 16 MARKS PREPARED BY S.VINILA JINNY, L/CSE Y. JEYA SHEELA, L/IT UNIT I 1. What do you mean by SDK? It is an acronym for Software Development Kit. It is

More information

int fnvgetconfig(handle h, UINT32 id, const void *cfg, size_t sz);... 4

int fnvgetconfig(handle h, UINT32 id, const void *cfg, size_t sz);... 4 RP-VL-UTIL-V1 Developer s Guide [ Contents ] 1. Introduction... 1 2. Building Environment... 1 3. Operating Environment... 1 4. Function Explanation... 2 4.1. Common API for Transmitting and Receiving...

More information

15. Microsoft Foundation Classes

15. Microsoft Foundation Classes 15. Microsoft Foundation Classes This section of the notes presumes the student has already been familiarized with some general principles of GUI programming, and with a very brief introduction to MS-

More information

embos Real-Time Operating System CPU & Compiler specifics for embos Visual Studio Simulation

embos Real-Time Operating System CPU & Compiler specifics for embos Visual Studio Simulation embos Real-Time Operating System CPU & Compiler specifics for Document: UM01060 Software Version: 5.02 Revision: 0 Date: July 25, 2018 A product of SEGGER Microcontroller GmbH www.segger.com 2 Disclaimer

More information

Tutorial 9:Child Window Controls

Tutorial 9:Child Window Controls Tutorial 9:Child Window Controls This win32 tutorial was created and written by Iczelion for MASM32. It was translated for use by HLA High Level Assembly) users by Randall Hyde. All original copyrights

More information

A New IDE Add-on: FoxTabs Doug Hennig

A New IDE Add-on: FoxTabs Doug Hennig A New IDE Add-on: FoxTabs Doug Hennig FoxTabs provides easy access to all open windows in your VFP IDE. However, not only is it a great tool, it uses some very cool techniques to do its magic, including

More information

Structures. Basics of Structures (6.1) EECS l Now struct point is a valid type. l Defining struct variables: struct point { int x; int y; };

Structures. Basics of Structures (6.1) EECS l Now struct point is a valid type. l Defining struct variables: struct point { int x; int y; }; Structures EECS 2031 25 September 2017 1 Basics of Structures (6.1) struct point { int x; int y; keyword struct introduces a structure declaration. point: structure tag x, y: members The same member names

More information

ECE 480 Application Note. By: Jacob Hersha 4/3/15. Creating a Sequence of Media with Visual Studio

ECE 480 Application Note. By: Jacob Hersha 4/3/15. Creating a Sequence of Media with Visual Studio ECE 480 Application Note By: Jacob Hersha 4/3/15 Creating a Sequence of Media with Visual Studio Executive Summary Microsoft Visual Studio can be used to perform a wide variety of media processing techniques.

More information

In this lab, you will learn more about selection statements. You will get familiar to

In this lab, you will learn more about selection statements. You will get familiar to Objective: In this lab, you will learn more about selection statements. You will get familiar to nested if and switch statements. Nested if Statements: When you use if or if...else statement, you can write

More information

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE VISUAL PROGRAMMING UNIT I

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE VISUAL PROGRAMMING UNIT I SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE YEAR : III VISUAL PROGRAMMING UNIT I SEMESTER : V WINDOWS PROGRAMMING 1. List out the aspects of Windows 2. Define Dynamic

More information

Create a memory DC for double buffering

Create a memory DC for double buffering Animation Animation is implemented as follows: Create a memory DC for double buffering Every so many milliseconds, update the image in the memory DC to reflect the motion since the last update, and then

More information

TỔNG QUAN LẬP TRÌNH MÔI TRƯỜNG WINDOWS. Phạm Thi Vương

TỔNG QUAN LẬP TRÌNH MÔI TRƯỜNG WINDOWS. Phạm Thi Vương TỔNG QUAN LẬP TRÌNH MÔI TRƯỜNG WINDOWS Phạm Thi Vương Nội dung chính 1 Lịch sử Windows 2 3 Đặc điểm môi trường Windows Lập trình hướng sự kiện 4.NET Framework 5 Visual Studio 4/4/2012 Lập trình môi trường

More information

Chapter 15. Drawing in a Window

Chapter 15. Drawing in a Window Chapter 15 Drawing in a Window 1 The Window Client Area A coordinate system that is local to the window. It always uses the upper-left corner of the client area as its reference point. 2 Graphical Device

More information

CS 177 Week 15 Recitation Slides. Review

CS 177 Week 15 Recitation Slides. Review CS 177 Week 15 Recitation Slides Review 1 Announcements Final Exam on Friday Dec. 18 th STEW 183 from 1 3 PM Complete your online review of your classes. Your opinion matters!!! Project 6 due Just kidding

More information