Lecture 5: Introducing Dialog Boxes & Child Window Controls for Win 32 API

Size: px
Start display at page:

Download "Lecture 5: Introducing Dialog Boxes & Child Window Controls for Win 32 API"

Transcription

1 Lecture 5: Introducing Dialog Boxes & Child Window Controls for Win 32 API What is Dialog Box? How to make your project to have a Dialog Box Modal Dialog Modeless Dialog WM_INITDIALOG Child Window Controls Button, check box, etc.. Static & dynamic Child Window Controls Message Handlers Some useful API, structures 1

2 What is a Dialog Box? 1. Requesters 2. Notifications Combination of both 3. Modifiers 2

3 Modal vs. Modeless Dialog Boxes Modal Dialog box: demands a response from the user before the program will continue. If it is active, user must close it first before focus input to another part of the application. File/Print Modeless Dialog box: Opposite from above. It does not need to be closed.. Edit/Find 3

4 How to make yr project to have a dialog box Design an dialog by using Visual studio Decide it if a modal or a modeless dialog box Activating a Dialog box [แสดงไดอะล อก] Modal Dlg: DialogBox() Modeless Dlg: CreateDialog(), ShowWindow() Receiving Dialog Box Messages[ฟ งก ช นร บ action ของย สเซอร กระ ท าไปบน dialog ] DialogProc() Deactivating a Dialog box [ป ดไดอะล อก] Modal Dlg :EndDialog() Modeless Dlg: DestroyWindow() Run Ex1 4

5 Designing a Dialog box using Microsoft Visual C++.Net Developer Studio Create an empty project of Win 32 5 steps for creating a main window WinMain(), WindowProc() Project Add resource Press new button เป ด ex1.sln 5

6 Designing a Dialog box using Microsoft Visual C++.Net Developer Studio ไดอะล อกม ID :IDD_MODALDLG ป ม CANCEL ม ID:IDCANCEL 6

7 Example for a Modal Dialog สมม ต ได ออกแบบว า เม อย สเซอร กดเมน Modal_Dialog แล วไดอะล อกแบบ Modal จะ แสดงออกมาบนว นโดว หล ก ID ของเมน :IDM_MODALDLG เม อกดป ม cancel แล วไดอะล อกด งกล าวจะถ กป ดไป Demo:Ex1_ModalDlg 7

8 Response for selecting a menu LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) int wmid, wmevent; int response; switch (message) case WM_COMMAND: wmid = LOWORD(wParam); //ขณะน ค อ ID ของแต ละเมน // Parse the menu selections: switch (wmid) case IDM_MODALDLG: //ID ของเมน ท จะเร ยก dialog box //implement codes ส าหร บเร ยก modal dialog ออกมาแสดง break;... 8

9 Creating & Using Modal Dialog Box Activating a Dialog box INT_PTR DialogBox( HINSTANCE hinstance, // handle to application instance LPCTSTR lptemplate, // identifies dialog box template HWND hwndparent, // handle to owner window DLGPROC lpdialogfunc // pointer to dialog box procedure ); Receiving Dialog Box Messages INT_PTR CALLBACK DialogProc( HWND hdlg, // handle to dialog box UINT msg, // message WPARAM wparam, // first message parameter LPARAM lparam); // second message parameter DialogProc ใช ช ออะไรก ได 9

10 Example: Activating a dialog box LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) int wmid, wmevent; int response; switch (message) case WM_COMMAND: Activating wmid = LOWORD(wParam); //ขณะน ค อ ID ของแต ละเมน // Parse the menu selections: switch (wmid) case IDM_MODALDLG: //ID ของเมน ท จะเร ยก dialog box DialogBox(hInst, (LPCTSTR)IDD_MODALDLG, hwnd, (DLGPROC)ModalDlg); break; hinst :ต องเซ ต global variable 1 ต ว (HINSTANCE) ให ม ค าเท าก บ 1 st parameter of WinMain 10

11 INT_PTR CALLBACK ModalDlg(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam) switch (message) Receiving case WM_INITDIALOG: return TRUE; case WM_COMMAND: switch (LOWORD(wParam)) case ID_CANCEL: EndDialog(hDlg, 0); return TRUE; break; return FALSE; Deactivating a Dialog box BOOL EndDialog( ( HWND hdlg, // handle to dialog box int nresult // value to return ); Deactivating 11

12 Example for a Modeless Dialog สมม ต ได ออกแบบว า เม อย สเซอร กดเมน Modeless_Dialog แล ว เมน ม ID:IDM_MODELESSDLG ไดอะล อกแบบ Modeless จะแสดงออกมาบนว นโดว หล ก เม อกดป ม cancel แล วไดอะล อกด งกล าวจะถ กป ดไป Demo:Ex1_ModelessDlg 12

13 Designing a Dialog box using Microsoft Visual C++.Net Developer Studio ไดอะล อกม ID :IDD_MODELESSDLG ป ม CANCEL ม ID:IDCANCEL 13

14 Response for selecting a menu LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) int wmid, wmevent; int response; switch (message) case WM_COMMAND: wmid = LOWORD(wParam); //ขณะน ค อ ID ของแต ละเมน // Parse the menu selections: switch (wmid) case IDM_MODALDLG: //ID ของเมน ท จะเร ยก dialog box... break; case IDM_MODELESSDLG: //ID ของเมน ท จะเร ยก dialog box //implement codes ส าหร บเร ยก modeless dialog ออกมาแสดง break;... 14

15 Creating & Using Modeless Dialog Box Activating a Dialog box Create the dialog box using CreateDialog() rather than DialogBox(). To show modeless dialog need to implement ShowWindow() HWND CreateDialog( HINSTANCE hinstance, // handle to application instance LPCTSTR lptemplate, // identifies dialog box template HWND hwndparent, // handle to owner window DLGPROC lpdialogfunc // pointer to dialog box procedure ); BOOL ShowWindow(HWND hwnd, int ncmdshow); Receiving Dialog Box Messages INT_PTR CALLBACK DialogProc( HWND hdlg, // handle to dialog box UINT msg, // message WPARAM wparam, // first message parameter LPARAM lparam); // second message parameter 15

16 Creating a Modeless Dialog Box LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) switch (LOWORD(wParam))... case IDM_MODELESSDLG://ID ของเมน ท จะเร ยก modeless dialog hdlg = CreateDialog(hInst, (LPCTSTR)IDD_MODELESSDLG, hwnd, (DLGPROC)ModelessDlg); ShowWindow(hDlg, SW_SHOW); break; HWND hdlg; เป น Global variable 16

17 INT_PTR CALLBACK ModelessDlg(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam) switch (message) Receiving case WM_INITDIALOG: return TRUE; case WM_COMMAND: switch (LOWORD(wParam)) Deactivating case IDCANCEL: DestroyWindow(hDlg hdlg);// Receiving Dialog Box Messages break; return FALSE; return TRUE; Deactivating a Dialog box Close the dialog box using DestroyWindow() instead of EndDialog(). 17

18 Creating & Using Modeless Dialog Box Must add the following function to the message loop in WinMain() function BOOL IsDialogMessage( HWND hdlg, // handle of dialog box LPMSG lpmsg // address of structure with message ); HWND hdlg; // ต องเป น Global variable while (GetMessage(&msg, NULL, 0, 0) > 0) if (!IsDialogMessage(hDlg, &msg)) TranslateMessage(&msg); DispatchMessage(&msg); 18

19 WM_INITDIALOG INT_PTR CALLBACK switch (message) ModelessDlg(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam) case WM_INITDIALOG: statements; return TRUE; case WM_COMMAND: switch (LOWORD(wParam)) case IDCANCEL: DestroyWindow(hDlg); return TRUE; break; return FALSE; CreateDialog(), DialogBox() generate a WM_INITDIALOG ไว เซ ตค าเร มต นต าง ๆ ของไดอะล อก เช นเซ ต items ลงใน listbox 19

20 Child Window Controls Button, Check Box, Edit Control, Combo Box, List Box, Group Box, Radio Box, static text Slider Control 20

21 Classic Child Window Controls Controls both generate msg (when accessed by the user) and receive msg (from yr app) Static text Primarily to display text Can also display icon images Often used as labels for other controls Button Clicked by user to indicate desired actions or choices made Lots of different styles pushbutton, check box, radio button Typically notify parent window when user chooses the button Edit To enter/view/edit/delete text Single or multi-line control Lots of word processing capability Also Clear/Copy/Cut/Paste/Undo capability 21

22 Classic Child Window Controls(cont.) Scroll Bar Control attached to edge of a parent window Allows user to "scroll" the information in a parent window's client area by moving scroll bar thumb Stand-alone child window control Allows user to enter/change a value by moving scroll bar "thumb List Box Contains lists of items that can be selected Entire list is shown User selects items Selected item is highlighted Combo Box Edit box combined with a list box User selects item from list & item is copied to edit box One type allows user to type into edit box If text matches item in list, it is highlighted & scrolled into view Another type doesn t allow user to type in edit box 22

23 Example Class of Child Window Controls for Win 32 API TYPE WINDOW CLASS Static Text STATIC Button BUTTON Edit Control EDIT List Box LISTBOX Combo Box COMBOBOX Scroll Bar SCROLLBAR Child window controls have been divided into two types: Predefined data (static data) Dynamic data (run) 23

24 แบบท 1 : predefined data (static data) using visual studio Control แต ละต วก จะม ID เป นของต วเอง ซ งจะถ ก generate อ ตโนม ต และสามารถแก ไขได รวมท งสามารถเซ ต property ผ านหน าต าง Properties ได เลย เช นเซ ต caption ของ button เป นต น 24

25 WM_INITDIALOG INT_PTR CALLBACK switch (message) SimpleDlg(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam) case WM_INITDIALOG: SendDlgItemMessage(hDlg, IDC_LIST1, LB_ADDSTRING, 0, (LPARAM) Lemon ); SendDlgItemMessage(hDlg, IDC_LIST1, LB_ADDSTRING, 0, (LPARAM) Grape ); SendDlgItemMessage(hDlg, IDC_LIST1, LB_ADDSTRING, 0, (LPARAM) Apple ); SendDlgItemMessage(hDlg, IDC_LIST1, LB_ADDSTRING, 0, (LPARAM) Orange ); return TRUE; case WM_COMMAND: switch (LOWORD(wParam)) case IDCANCEL: EndDialog(hDlg,0); return TRUE; break; return FALSE; CreateDialog(), DialogBox() generate a WM_INITDIALOG ไว เซ ตค าเร มต นต างของไดอะล อกเช น เซ ต items ลงใน listbox Run: Ex1_AddItemtoListbox 25

26 แบบท 2 : dynamic data Creating Child Window Controls CreateWindow() --For any kind of window, including a control :HWND ShowWindow() HWND CreateWindow( LPCTSTR lpclassname, // pointer to registered class name LPCTSTR lpwindowname, // pointer to window name DWORD dwstyle, // window style int x, // horizontal position of window int y, // vertical position of window int nwidth, // window width int nheight, // window height HWND hwndparent, // handle to parent or owner window HMENU hmenu, // handle to menu or child-window identifier HANDLE hinstance, // handle to application instance LPVOID lpparam // pointer to window-creation data ); BOOL ShowWindow( HWND hwnd, // handle to window int ncmdshow // show state of window ); 11 parameters 26

27 Parameters: 1. Predefined control class names: "STATIC", "BUTTON", EDIT, LISTBOX, COMBOBOX, SCROLLBAR, etc. 2. Name of the window For BUTTON, EDIT, STATIC classes: text in center of control For COMBOBOX, LISTBOX, SCROLLBAR: ignored (use "") 3. Window style WS_, SS_, BS_, ES_, LBS_, CBS_, SBS_ (see CreateWindow help) Several styles can be combined with the bitwise or operator ( ) All controls should include WS_CHILD style Parameters 4-7: X,Y position (Relative to the upper left corner of parent window client area) Width & Height 8. Handle to the parent window 9. Handle to menu Controls don t have menus So hmenu parameter used to hold control s integer ID must define in resource.h file ID value passed with WM_COMMAND message generated when user interacts with the control 10. Handle to instance of program creating control: 1 st parameter of WinMain() 11. Pointer to window creation data : normally NULL 27

28 Example: Creating a Push button dynamically // Global Variables: HINSTANCE hinst;// current instance HWND dynamicbutton; // dynamic create button //ใน File resource.h #define IDC_DYNAMICBUTTON INT_PTR CALLBACK SimpleDlg(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam) long i; char str[80]; switch (message) case WM_COMMAND: switch (LOWORD(wParam)) case IDC_CREATEBUTTON: dynamicbutton = CreateWindow("BUTTON", "Push Me", WS_CHILD BS_PUSHBUTTON, 300,200,130,60, hdlg, (HMENU)IDC_DYNAMICBUTTON, hinst, NULL); ShowWindow(dynamicButton, SW_SHOWNORMAL); return TRUE; case IDC_DYNAMICBUTTON: MessageBox(hDlg, "Press Dynamic Button", "Dynamic", MB_OK); return TRUE;... 28

29 Child Window Controls Message Handlers User interacts with the control Detect each a child window control under WM_COMMAND ยกเว น scroll bar control LOWORD(wParam) = Control ID Put Control message handlers in same switch/case statement INT_PTR CALLBACK SimpleDlg(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam) switch (message) case WM_COMMAND: switch (LOWORD(wParam)) case IDCANCEL: EndDialog(hDlg,0); return TRUE; break; return FALSE; 29

30 Child Window Controls Message Handlers HIWORD(wParam) = notification code identifies what the user action was Ex. If (HIWORD(wParam) ==LBN_DBCLK) notification message when the user double-clicks a string in a list box INT_PTR CALLBACK SimpleDlg(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam) switch (message) case WM_COMMAND: switch (LOWORD(wParam)) case IDC_LIST1: // process a list box LBN_DBLCLK if (HIWORD(wParam)== LBN_DBLCLK) i = SendDlgItemMessage(hDlg, IDC_LIST1, LB_GETCURSEL, 0, 0); sprintf(str, "Index in list is: %d",i); SetDlgItemText(hDlg,IDC_EDIT1,str); return TRUE; case IDCANCEL: EndDialog(hDlg,0); return TRUE; break; return FALSE; 30

31 Child Window Controls Message Handlers (HWND)lParam = handle of control: HWND Scroll Bars are a bit different : WM_VSCROLL, WM_HSCROLL INT_PTR CALLBACK SimpleDlg(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam) switch (message) case WM_COMMAND: switch (LOWORD(wParam)) case IDC_DYNAMICBUTTON: SetWindowText((HWND)lParam, "CHANGE"); return TRUE; case IDCANCEL: EndDialog(hDlg,0); return TRUE; break; return FALSE; Run:Ex1_SetWindowText 31

32 Sending a Message to a List Box Unlike a push button, it can receive several different msgs : LRESULT SendDlgItemMessage( HWND hdlg, // handle of dialog box int niddlgitem, // identifier of control UINT Msg, // message to send WPARAM wp, // first message parameter LPARAM lp // second message parameter ); Initializing the list box when the dialog box is first displayed LB_ADDSTRING : Add a string (selection) to the list box case WM_INITDIALOG: SendDlgItemMessage(hDlg, IDC_LIST1, LB_ADDSTRING, 0, (LPARAM)"Lemon"); Response to the user selecting an item from the list LB_GETCURSEL : Requests the index of the selected item LRESULT CALLBACK DialogProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)... case IDC_LIST1: if (HIWORD(wParam) == LBN_DBLCLK) i = SendDlgItemMessage(hDlg, IDC_LIST1, LB_GETCURSEL, 0,0); // get index if (i!= LB_ERR) do something

33 Examples : List Box Messages INT_PTR CALLBACK MyDialog1(HWND hdlg, UINT message, WPARAM wparam, LPARAM lparam)... LBN_DBLCLK LBN_ERRSPACE LBN_KILLFOCUS LBN_SELCANCEL LBN_SELCHANGE LBN_SETFOCUS Notification Messages If (HIWORD(wParam)==notification code))... Action ท เก ดจากการกระท าของย สเซอร ต อ listbox LB_ADDFILE LB_ADDSTRING LB_DELETESTRING LB_GETCURSEL LB_DIR LB_SETCARETINDEX LB_SETCOLUMNWIDTH LB_SETCOUNT LB_SETCURSEL LB_SETHORIZONTALEXTENT SendDlgItemMessage(p1,p2,UINT msg,p4,p5) If (HIWORD(wParam)==notification code)) SendDlgItemMessage(...)... Etc.. LOWORD(wParam) = Control ID 33

34 Examples: Edit Control or edit box Messages EN_CHANGE EN_KILLFOCUS EN_MAXTEXT EN_SETFOCUS Notification Messages if (HIWORD(wParam)==notification code)... Action ท เก ดจากการกระท าของย สเซอร ต อ Edit control EM_CHARFROMPOS EM_EMPTYUNDOBUFFER EM_FMTLINES EM_LINELENGTH EM_GETFIRSTVISIBLELINE EM_GETHANDLE EM_GETIMESTATUS EM_SETLIMITTEXT EM_SETMARGINS EM_SETMODIFY EM_SETPASSWORDCHAR EM_SETREADONLY SendDlgItemMessage(p1,p2,UINT msg,p4,p5) case IDC_EDIT1: if (HIWORD(wParam) == EN_CHANGE) SendDlgItemMessage(...) 34

35 Example codes: EN_MAXTEXT case WM_INITDIALOG: SendDlgItemMessage(hDlg, IDC_EDIT1, EM_SETLIMITTEXT, 5,0); break; case WM_COMMAND: int mevent = HIWORD(wParam); switch (LOWORD(wParam)) case IDC_EDIT1: if (HIWORD(wParam) ==EN_MAXTEXT) MessageBox(hDlg, "Only 5 characters", "MaxCharacter", MB_OK); return TRUE; 35

36 Example: Notification Messages from Button Message Description BN_CLICKED The user clicked a button. BN_DISABLE A button is disabled. BN_PUSHED The user pushed a button. BN_KILLFOCUS The button lost the keyboard focus. BN_PAINT The button should be painted. BN_SETFOCUS The button gained the keyboard focus. BN_UNPUSHED The button is no longer pushed HIWORD(wParam) identifies what the user action was if (HIWORD(wParam)==BN_KILLFOCUS) 36

37 Check Box & Radio Button BM_GETCHECK p4,p5 = 0 SendDlgItemMessage(p1,p2,UINT msg,p4,p5) BM_SETCHECK p4 = BST_CHECKED or BST_UNCHECKED p5=0 Example: case WM_INITDIALOG: SendDlgItemMessage(hDlg, IDC_CHECK1, BM_SETCHECK,BST_CHECKED,0); case IDC_CHANGEBUTTON: if (BST_UNCHECKED == SendDlgItemMessage(hDlg, IDC_CHECK1, BM_GETCHECK,0,0)) SendDlgItemMessage(hDlg, IDC_CHECK1, BM_SETCHECK,BST_CHECKED,0); 37

38 Some Useful APIs for Controls The GetDlgItem function retrieves the handle of a control in the specified dialog box. HWND GetDlgItem( HWND hdlg, // handle of dialog box int niddlgitem // identifier of control ); SetWindowText(HWND hwnd, LPCTSTR lpstring) The GetDlgItemText function retrieves the title or text associated with a control in a dialog box. UINT GetDlgItemText( HWND hdlg, // handle of dialog box int niddlgitem, // identifier of control LPTSTR lpstring, // address of buffer for text int nmaxcount // maximum size of string ); The GetDlgItemInt function translates the text of a specified control in a dialog box into an integer value UINT GetDlgItemInt( HWND hdlg, // handle to dialog box int niddlgitem, // control identifier BOOL *lptranslated, // points to variable to receive success/failure BOOL bsigned // specifies whether value is signed or unsigned ); 38

39 Example: an Edit box int num; case IDC_BUTTON3: num = GetDlgItemInt(hDlg, IDC_EDIT3, NULL, TRUE); sprintf(str,"%d",num); MessageBox(hDlg, str, "Edit Box Contains", MB_OK); char str[80]; case IDOK : /* edit box OK button selected*/ /* display contents of the edit box*/ GetDlgItemText(hDlg, IDC_EDIT1, str, 80); MessageBox(hDlg, str, Edit Box Contains, MB_OK); 39

40 Some Useful APIs for Controls The SetDlgItemInt function sets the text of a control in a dialog box to the string representation of a specified integer value. BOOL SetDlgItemInt( HWND hdlg, // handle of dialog box int niddlgitem, // identifier of control UINT uvalue, // value to set BOOL bsigned // signed or unsigned indicator ); The SetDlgItemText function sets the title or text of a control in a dialog box. BOOL SetDlgItemText( HWND hdlg, // handle of dialog box int niddlgitem, // identifier of control LPCTSTR lpstring // text to set ); 40

41 Scroll Bars The first is an integral part of a normal window or dialog box Call a standard scroll bar CreateWindow( szwindowclass,... WS_OVERLAPPEDWINDOW WS_VSCROLL WS_HSCROLL,...) The second exists separately as a control Call a scroll bar control Drag from Tool box during designing a dialog box 41

42 Scroll Bars LPRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)... Activating the Scroll Bars CreateWindow() : for standard scroll bar Window style: WS_VSCROLL WS_HSCROLL Scroll bar control: drag from tool box Receiving Scroll Bar Messages WM_VSCROLL or WM_HSCROLL Unlike other controls generate WM_COMMNAD LOWORD(wParam) : specify what type of scroll bar action SB_LINEUP, SB_LINEDOWN, SB_PAGEUP, SB_PAGEDOWN, etc lparam Standard scroll bars : lparam = 0 Scroll bar control : lparam contains its handle :HWND 42

43 Example codes for Scroll bar INT_PTR CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) switch (message) case WM_VSCROLL VSCROLL: switch(loword(wparam)) case SB_LINEDOWN: break; case SB_LINEUP: break; case SB_THUMBPOSITION: break; case SB_THUMBTRACK: break; case SB_PAGEDOWN: break; case SB_PAGEUP: break; 43

44 If (HWND)lParam== GetDlgItem(hDlg, IDC_SCROLLBAR1)) 44

45 Useful structures OPENFILENAME CHOOSEFONT เป ด MSDN CHOOSECOLOR 45

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

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

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

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

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

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

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

// handle of dialog box

// handle of dialog box GetDlgItemText / GetDlgItemTextA / GetDlgItemTextW Hàm GetDlgItemText có nhiệm vụ tìm title hoặc text kết hợp với control trong dialog box UINT GetDlgItemText( HWND hdlg, int niddlgitem, LPTSTR lpstring,

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

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

C Programming

C Programming 204216 -- C Programming Chapter 9 Character Strings Adapted/Assembled for 204216 by Areerat Trongratsameethong A First Book of ANSI C, Fourth Edition Objectives String Fundamentals Library Functions Input

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

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

ว ธ การต ดต ง Symantec Endpoint Protection

ว ธ การต ดต ง Symantec Endpoint Protection ว ธ การต ดต ง Symantec Endpoint Protection 1. Download File ส าหร บการต ดต ง 2. Install Symantec Endpoint Protection Manager 3. Install License 4. Install Symantec Endpoint Protection Client to Server

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

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

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

C Programming

C Programming 204216 -- C Programming Chapter 5 Repetition Adapted/Assembled for 204216 by Areerat Trongratsameethong Objectives Basic Loop Structures The while Statement Computing Sums and Averages Using a while Loop

More information

Lab 10: Structs and Enumeration

Lab 10: Structs and Enumeration Lab 10: Structs and Enumeration There is one more way to create your own value types in C#. You can use the struct keyword. A struct (short for structure) can have its own fields, methods, and constructors

More information

ISI Web of Science. SciFinder Scholar. PubMed ส บค นจากฐานข อม ล

ISI Web of Science. SciFinder Scholar. PubMed ส บค นจากฐานข อม ล 2.3.3 Search Chem. Info. in Journal ส บค นจากฐานข อม ล - ฐานข อม ลท รวบรวมข อม ลของ journal จากหลาย ๆ แหล ง ISI http://portal.isiknowledge.com/portal.cgi/ SciFinder ต องต ดต งโปรแกรมพ เศษ และสม ครสมาช

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

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

Lecture 6 : Multitasking & DLL

Lecture 6 : Multitasking & DLL Lecture 6 : Multitasking & DLL Multitask CreadThread, ExitThread, TerminateThread beginthreadex, endthreadex : memory leak SuspendThread, ResumeThread Sleep Thread priorities Synchronization CreateSemaphore,

More information

CPE 426 Computer Networks. Chapter 5: Text Chapter 23: Support Protocols

CPE 426 Computer Networks. Chapter 5: Text Chapter 23: Support Protocols CPE 426 Computer Networks Chapter 5: Text Chapter 23: Support Protocols 1 TOPICS สร ปเร อง IP Address Subnetting Chapter 23: Supporting Protocols ARP: 23.1-23.7 ใช ส าหร บหา HW Address(MAC Address) ICMP:

More information

Programming in graphical environment. Introduction

Programming in graphical environment. Introduction Programming in graphical environment Introduction The lecture Additional resources available at: http://www.mini.pw.edu.pl/~maczewsk/windows_2004 Recommended books: Programming Windows - Charles Petzold

More information

IS311. Data Structures and Java Collections

IS311. Data Structures and Java Collections IS311 Data Structures and Java Collections 1 Algorithms and Data Structures Algorithm Sequence of steps used to solve a problem Operates on collection of data Each element of collection -> data structure

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

systemove programovanie win32 programovanie

systemove programovanie win32 programovanie systemove programovanie win32 programovanie zakladny princip uzivatel interaguje so systemom klavesnicou, mysou tym generuje udalosti, ktore sa radia do,,message queue" (front sprav) aplikacia vytahuje

More information

Chapter 3 Outline. Relational Model Concepts. The Relational Data Model and Relational Database Constraints Database System 1

Chapter 3 Outline. Relational Model Concepts. The Relational Data Model and Relational Database Constraints Database System 1 Chapter 3 Outline 204321 - Database System 1 Chapter 3 The Relational Data Model and Relational Database Constraints The Relational Data Model and Relational Database Constraints Relational Model Constraints

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

Chapter 9: Virtual-Memory Management Dr. Varin Chouvatut. Operating System Concepts 8 th Edition,

Chapter 9: Virtual-Memory Management Dr. Varin Chouvatut. Operating System Concepts 8 th Edition, Chapter 9: Virtual-Memory Management Dr. Varin Chouvatut, Silberschatz, Galvin and Gagne 2010 Chapter 9: Virtual-Memory Management Background Demand Paging Copy-on-Write Page Replacement Allocation of

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

กล ม API ท ใช. Programming Graphical User Interface (GUI) Containers and Components 22/05/60

กล ม API ท ใช. Programming Graphical User Interface (GUI) Containers and Components 22/05/60 กล ม API ท ใช Programming Graphical User Interface (GUI) AWT (Abstract Windowing Toolkit) และ Swing. AWT ม ต งต งแต JDK 1.0. ส วนมากจะเล กใช และแทนท โดยr Swing components. Swing API ปร บปร งความสามารถเพ

More information

I/O. Output. Input. Input ของจาวา จะเป น stream จะอ าน stream ใช คลาส Scanner. standard input. standard output. standard err. command line file.

I/O. Output. Input. Input ของจาวา จะเป น stream จะอ าน stream ใช คลาส Scanner. standard input. standard output. standard err. command line file. I/O and Exceptions I/O Input standard input keyboard (System.in) command line file Output standard output Screen (System.out) standard err file System.err Input ของจาวา จะเป น stream จะอ าน stream ใช คลาส

More information

Chapter 4. Introducing Oracle Database XE 11g R2. Oracle Database XE is a great starter database for:

Chapter 4. Introducing Oracle Database XE 11g R2. Oracle Database XE is a great starter database for: Oracle Database XE is a great starter database for: Chapter 4 Introducing Oracle Database XE 11g R2 Developers working on PHP, Java,.NET, XML, and Open Source applications DBAs who need a free, starter

More information

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

Windows Programming. Krzysztof Mossakowski, MSc

Windows Programming. Krzysztof Mossakowski, MSc , MSc k.mossakowski@mini.pw.edu.pl Contents 1. Windows, messages, time, errors 2. Types, structures, macros, the mouse, the keyboard, versions 3. GDI 4. Resources, dialog boxes, controls, scrolling 5.

More information

แผนการสอนว ชา การเข ยนโปรแกรมคอมพ วเตอร 2 (Computer Programming 2) ภาคการศ กษา 1 ป การศ กษา 2559

แผนการสอนว ชา การเข ยนโปรแกรมคอมพ วเตอร 2 (Computer Programming 2) ภาคการศ กษา 1 ป การศ กษา 2559 แผนการสอนว ชา 01076235 การเข ยนโปรแกรมคอมพ วเตอร 2 (Computer Programming 2) ภาคการศ กษา 1 ป การศ กษา 2559 ค าอธ บายรายว ชา หล กการโปรแกรมเช งว ตถ เมธอด คลาส การซ อนสารสนเทศและการส บทอด อ ลกอร ท มพ นฐานการเร

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

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

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

Broken Characters Identification for Thai Character Recognition Systems

Broken Characters Identification for Thai Character Recognition Systems Broken Characters Identification for Thai Character Recognition Systems NUCHAREE PREMCHAISWADI*, WICHIAN PREMCHAISWADI* UBOLRAT PACHIYANUKUL**, SEINOSUKE NARITA*** *Faculty of Information Technology, Dhurakijpundit

More information

Chapter 8: Memory- Management Strategies Dr. Varin Chouvatut

Chapter 8: Memory- Management Strategies Dr. Varin Chouvatut Part I: Overview Part II: Process Management Part III : Storage Management Chapter 8: Memory- Management Strategies Dr. Varin Chouvatut, Silberschatz, Galvin and Gagne 2010 Chapter 8: Memory Management

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

Lecture 6 Register Transfer Methodology. Pinit Kumhom

Lecture 6 Register Transfer Methodology. Pinit Kumhom Lecture 6 Register Transfer Methodology Pinit Kumhom VLSI Laboratory Dept. of Electronic and Telecommunication Engineering (KMUTT) Faculty of Engineering King Mongkut s University of Technology Thonburi

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

INPUT Input point Measuring cycle Input type Disconnection detection Input filter

INPUT Input point Measuring cycle Input type Disconnection detection Input filter 2 = TEMPERATURE CONTROLLER PAPERLESS RECORDER หน าจอเป น Touch Sceen 7-Inch LCD เก บข อม ลผ าน SD Card และ USB Memory ร บ Input เป น TC/RTD/DC Voltage/DC Current ร บ Input 6 Channel ช วงเวลาในการอ านส

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

เคร องว ดระยะด วยแสงเลเซอร แบบม อถ อ ย ห อ Leica DISTO ร น D110 (Bluetooth Smart) ประเทศสว ตเซอร แลนด

เคร องว ดระยะด วยแสงเลเซอร แบบม อถ อ ย ห อ Leica DISTO ร น D110 (Bluetooth Smart) ประเทศสว ตเซอร แลนด เคร องว ดระยะด วยแสงเลเซอร แบบม อถ อ ย ห อ Leica DISTO ร น D110 (Bluetooth Smart) ประเทศสว ตเซอร แลนด 1. ค ณล กษณะ 1.1 เป นเคร องว ดระยะทางด วยแสงเลเซอร แบบม อถ อ 1.2 ความถ กต องในการว ดระยะทางไม เก น

More information

What s Hot & What s New from Microsoft ส มล อน นตธนะสาร Segment Marketing Manager

What s Hot & What s New from Microsoft ส มล อน นตธนะสาร Segment Marketing Manager What s Hot & What s New from Microsoft ส มล อน นตธนะสาร Segment Marketing Manager 1 โปรแกรมท น าสนใจส าหร บไตรมาสน Crisis Turing Point II Oct-Dec 09 Windows 7 งานเป ดต วสาหร บล กค าท วไป, Paragon Hall,

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

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

ร จ กก บ MySQL Cluster

ร จ กก บ MySQL Cluster ร จ กก บ MySQL Cluster ก ตต ร กษ ม วงม งส ข (Kittirak Moungmingsuk) kittirak@clusterkit.co.th May 19, 2012 @ossfestival #11 `whoami` A part of team at Cluster Kit Co.,Ltd. Since 2007. Adjacent Lecturer

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

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

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

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

กองว ชาประว ต ศาสตร ส วนการศ กษา โรงเร ยนนายร อยพระจ ลจอมเกล า 18 ต ลาคม พ.ศ. 2549

กองว ชาประว ต ศาสตร ส วนการศ กษา โรงเร ยนนายร อยพระจ ลจอมเกล า 18 ต ลาคม พ.ศ. 2549 บ ญช ด ชน เอกสารเก ยวก บประเทศไทยจากส าน กหอจดหมายเหต แห งชาต สหร ฐอเมร กา RG 226 Entry 153 A Records of the Office of Strategic Services: Washington Director's Office พ.ท.ผศ.ดร. ศรศ กร ช สว สด ผ รวบรวม

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

Fundamentals of Database Systems

Fundamentals of Database Systems 204222 - Fundamentals of Database Systems Chapter 24 Database Security Adapted for 204222 by Areerat Trongratsameethong Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Outline

More information

Starting Microsoft Visual Studio 6.0 And Exploring Available Controls Tools

Starting Microsoft Visual Studio 6.0 And Exploring Available Controls Tools Starting Microsoft Visual Studio 6.0 And Exploring Available Controls Tools Section 1. Opening Microsoft Visual Studio 6.0 1. Start Microsoft Visual Studio ("C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE")

More information

โปรแกรมท น าสนใจส าหร บไตรมาสน

โปรแกรมท น าสนใจส าหร บไตรมาสน แคมเปญ และก จกรรมทางการตลาด (ต ลาคม ธ นวาคม 2552) โปรแกรมท น าสนใจส าหร บไตรมาสน Crisis Turing Point II Oct-Dec 09 Windows 7 งานเป ดต วสาหร บล กค าท วไป, Paragon Hall, 31 Oct -1 Nov งานเป ดต วสาหร บล กค

More information

Verified by Visa Activation Service For Cardholder Manual. November 2016

Verified by Visa Activation Service For Cardholder Manual. November 2016 Verified by Visa Activation Service For Cardholder Manual November 2016 Table of Contents Contents Registration for Card Holder verification on ACS... 3 1. Direct Activation... 4 2. Changing personal information

More information

IS311 Programming Concepts 2/59. AVA Exception Handling Jการจ ดการส งผ ดปรกต

IS311 Programming Concepts 2/59. AVA Exception Handling Jการจ ดการส งผ ดปรกต 1 IS311 Programming Concepts 2/59 AVA Exception Handling Jการจ ดการส งผ ดปรกต 2 Introduction Users have high expectations for the code we produce. Users will use our programs in unexpected ways. Due to

More information

Looking forward to a successful coopertation : TEIN

Looking forward to a successful coopertation : TEIN Space Krenovation Park : SKP Looking forward to a successful coopertation : TEIN Geo-Informatics and Space Technology Development Agency : GISTDA Space Krenovation Park @ Chonburi 1 Mission TC/TM House

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

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

Review. Designing Interactive Systems II. The Apple Macintosh

Review. Designing Interactive Systems II. The Apple Macintosh Review Designing Interactive Systems II Computer Science Graduate Programme SS 2010 Prof. Dr. Media Computing Group RWTH Aachen University What is the difference between Smalltalk, Squeak, and Morphic?

More information

SEARCH STRATEGIES KANOKWATT SHIANGJEN COMPUTER SCIENCE SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITY OF PHAYAO

SEARCH STRATEGIES KANOKWATT SHIANGJEN COMPUTER SCIENCE SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITY OF PHAYAO SEARCH STRATEGIES KANKWATT SHIANGJEN CMPUTER SCIENCE SCHL F INFRMATIN AND CMMUNICATIN TECHNLGY UNIVERSITY F PHAYA Search Strategies Uninformed Search Strategies (Blind Search): เป นกลย ทธ การ ค นหาเหม

More information

Creating an MFC Project in Visual Studio 2012

Creating an MFC Project in Visual Studio 2012 Creating an MFC Project in Visual Studio 2012 Step1: Step2: Step3: Step4: Step5: You don t need to continue this wizard any longer, you can press Finish to finish creating your project. We will introduce

More information

การสร างเว บเซอร ว สโดยใช Microsoft.NET

การสร างเว บเซอร ว สโดยใช Microsoft.NET การสร างเว บเซอร ว สโดยใช Microsoft.NET อ.ดร. กานดา ร ณนะพงศา ภาคว ชาว ศวกรรมคอมพ วเตอร คณะว ศวกรรมคอมพ วเตอร มหาว ทยาล ยขอนแก น บทน า.NET เป นเคร องม อท เราสามารถน ามาใช ในการสร างและเร ยกเว บเซอร ว สได

More information

The Clustering Technique for Thai Handwritten Recognition

The Clustering Technique for Thai Handwritten Recognition The Clustering Technique for Thai Handwritten Recognition Ithipan Methasate, Sutat Sae-tang Information Research and Development Division National Electronics and Computer Technology Center National Science

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

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

OCTAVO An Object Oriented GUI Framework

OCTAVO An Object Oriented GUI Framework OCTAVO An Object Oriented GUI Framework Federico de Ceballos Universidad de Cantabria federico.ceballos@unican.es November, 2004 Abstract This paper presents a framework for building Window applications

More information

*** THIS TUTORIAL IS ONLY FOR EDUCATIONAL PURPOSES!***

*** THIS TUTORIAL IS ONLY FOR EDUCATIONAL PURPOSES!*** Page 1 Title: How to inject code into a exe file Autor: Iman Karim Email: iman.karim@smail.inf.fh-bonn-rhein-sieg.de Home: http://www2.inf.fh-bonn-rhein-sieg.de/~ikarim2s/ *** THIS TUTORIAL IS ONLY FOR

More information

C Programming. Lecture no. 2 More on Control Statements

C Programming. Lecture no. 2 More on Control Statements C Programming Lecture no. 2 More on Control Statements คำส งในกำรควบค มโปรแกรม 2 คำส ง if อย ำงง ำย ค ำส ง if เป นค ำส งสำหร บกำร สร ำงสำยกำรควบค มกำรท ำงำน ออกเป น 2 สำย ร ปแบบ if (condition) statement;

More information

Tutorial 3: A Simple Window

Tutorial 3: A Simple Window Tutorial 3: A Simple Window In this tutorial, we will build a Windows program that displays a fully functional window on the desktop. Source Code for This Tutorial: // Iczelion's tutorial #3: A Simple

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

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

Programmer s Manual MM/104 Multimedia Board

Programmer s Manual MM/104 Multimedia Board Programmer s Manual MM/104 Multimedia Board Ver. 1.0 11. Sep. 1998. Copyright Notice : Copyright 1998, INSIDE Technology A/S, ALL RIGHTS RESERVED. No part of this document may be reproduced or transmitted

More information

CIS 488 Programming Assignment 14 Using Borland s OWL

CIS 488 Programming Assignment 14 Using Borland s OWL CIS 488 Programming Assignment 14 Using Borland s OWL Introduction The purpose of this programming assignment is to give you practice developing a Windows program using Borland Object Windows Library,

More information

Specifications 14TB 12TB 10TB 8TB 6TB 4TB 3TB 2TB 1TB

Specifications 14TB 12TB 10TB 8TB 6TB 4TB 3TB 2TB 1TB SEAGATE Internal Harddisk Drive Skyhawk : 3.5 ส นค า ร บประก น 3 ป Smart. Safe. Secure. : Seagate Surveillance-Optimized Storage Seagate SkyHawkค ม ครบ เพ อ อนาคต Hard disk ส าหร บกล องวงจรป ดโดยเฉพาะ

More information

Today Topics. Artificial Intelligent??? Artificial Intelligent??? Intelligent Behaviors. Intelligent Behavior (Con t) 20/07/52

Today Topics. Artificial Intelligent??? Artificial Intelligent??? Intelligent Behaviors. Intelligent Behavior (Con t) 20/07/52 Today Topics Artificial Intelligent Applications Opas Wongtaweesap (Aj OaT) Intelligent Information Systems Development and Research Laboratory Centre Faculty of Science, Silpakorn University Webpage :

More information

27 Designing Your Own Program

27 Designing Your Own Program 27 Designing Your Own Program 27.1 Using API s...27-2 27.2 Device Access APIs...27-19 27.3 Cache Buffer Control APIs...27-30 27.4 Queuing Access Control APIs...27-36 27.5 System APIs...27-39 27.6 SRAM

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

บทท 4 ข นตอนการทดลอง

บทท 4 ข นตอนการทดลอง บทท 4 ข นตอนการทดลอง ในบทน จะท าการทดลองในส วนของซ นเซอร ว ดอ ณหภ ม เพ อผลท ได มาใช ในการเข ยน โปรแกรมและท าโครงงานให ได ประส ทธ ภาพข น 4.1 การทดสอบระบบเซ นเซอร ว ตถ ประสงค การทดลอง ว ตถ ประสงค ของการทดลองน

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

Keygen Injection. Kwazy Webbit March Volume 1, Issue 1, 2006

Keygen Injection. Kwazy Webbit March Volume 1, Issue 1, 2006 Volume 1, Issue 1, 2006 Keygen Injection Kwazy Webbit March 2006 Abstract This essay will teach you a technique I've first developed while writing my essay on cracking an application. A lot of people have

More information

Lecture Outline. 1. Semantic Web Technologies 2. A Layered Approach 3. Data Integration

Lecture Outline. 1. Semantic Web Technologies 2. A Layered Approach 3. Data Integration Semantic Web Lecture Outline 1. Semantic Web Technologies 2. A Layered Approach 3. Data Integration Semantic Web Technologies Explicit Metadata Ontologies Logic and Inference Agents 3 On HTML Web content

More information

Basic computer skills such as using Windows, Internet Explorer, and Microsoft Word. and Java. Chapter 2 Primitive Data Types and Operations

Basic computer skills such as using Windows, Internet Explorer, and Microsoft Word. and Java. Chapter 2 Primitive Data Types and Operations Basic computer skills such as using Windows, Internet Explorer, and Microsoft Word Chapter p 1 Introduction to Computers, p, Programs, g, and Java Chapter 2 Primitive Data Types and Operations Chapter

More information

: Lập trình Win32. Lập trình Win32 API. vncoding.net Page 1. Date : 07/09/2014

: Lập trình Win32. Lập trình Win32 API. vncoding.net Page 1. Date : 07/09/2014 Title Author : Lập trình Win32 : Vu Hong Viet Date : 07/09/2014 Lập trình Win32 API 1. Giới thiệu Đây là Tutorial cho lập trình Windows API. Tutorial này sẽ hướng dẫn bạn những kiến thức cơ bản và nâng

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

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

JavaScript Framework: AngularJS

JavaScript Framework: AngularJS บทท 8 JavaScript Framework: AngularJS ว ชา เทคโนโลย เว บ (รห สว ชา 04-06-204) ว ตถ ประสงค การเร ยนร เพ อให ผ เร ยนม ความร ความเข าใจเก ยวก บ JavaScript Framework: AngularJS เพ อให ผ เร ยนสามารถนาเสนอการดาเน

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

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

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

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