Thursday, December 20, 2007

How to start debugging Visual C++ project

How to start debugging Visual C++ project

To start debugging Visual C++ project

Step a: Build>Start Debug

Go= simply executes a program up to the breakpoint where execution will halt.

Step info= execute your program one statement at a time.

How to use Escape Sequences

How to use Escape Sequences

To use Escape Sequences:

Code

Meaning Of Code

\a

    Audible bell

\b

Backspace

\f

    Formfeed

\n

Newline

\r

Carriage return

\t

Horizontal tab

\\

Backslash character

\’

Single quote character

\"

Double quote character

\0

Null ASCII 0

How to set the project option

How to set the project option

To set the project option

Step a: Project>Setting


How to set option in Visual C++

How to set option in Visual C++

To set option in Visual C++

Step a: Tools>Option

How to build the Project

How to build the Project

To build the Project

Step a: Click the

This will begin building the Visual C++ project.

How to add a source file to a Project

How to add a source file to a Project

To add a source file to a Project

Step a: Right click the mouse key select insert File into Project

How to enter the C++ source file

How to enter the C++ source file

To enter the c++ source file

Step a: File>New

Step b: Select the C++ source file in the Files Tap

Step c: Enter the code

How to process Debug or Release Version of your Program

How to process Debug or Release Version of your Program

Tto process Debug or Release Version of your Program

These option determine how your source code is to be processed during the compile and link stages

How to select from Dockable Toolbars

How to select from Dockable Toolbars

To select from Dockable Toolbars

Click on the icons as shown below to do respective file handling functions.

How to select Toolbar options

How to select Toolbar options

To select Toolbar options

Options with the check icons were selected.

How to view results in Build, Debug, Find in Files1 and Files2

How to view results in Build, Debug, Find in Files1 and Files2

To view results in Build, Debug, Find in Files1 and Files2

Select from the tabs as shown below to view the results.


How to use ClassView ResourceView and FileView

How to use ClassView ResourceView and FileView

To use The ClassView ResourceView and FileView:

Click on the tabs as shown to go to ResourceView or FileView.

How to select the Project Workspace dialog box

How to select the Project Workspace dialog box

To select the Project Workspace dialog box

Click on the folder to view resources.

How to select from the Control ToolBar

How to select from the Control ToolBar

To select from the Control ToolBar

How to select from The Menu Bar

How to select from The Menu Bar

To select from The Menu Bar

    Using the IDE

Wednesday, December 19, 2007

How to change the Font size

How to change the Font size

To change the Font size

Step a: Adding the Group box in the dialog box

Step b: Adding the Radio button in the dialog box checked in General tab

Step c: Attaching a variable to the Radio Buttons

Step d: View>Class Wizard

Step e: Member Variables Class name: CFontDlg Control ID: IDC_RADIO1

Step f: Click ’Add Variables’ button

Step g: Initializing the Radio Buttons

Step h: View>Class Wizard

Step i: Message Maps Class name: CFontDlg Object ID:CFontDlg Message: WM_INITDIALOG

Step j: Click ‘Edit Code’ button

Step k: View>Class Wizard

Step l: Message Maps Class name: CFontDlg Object ID: IDC_RADIO1 Message:BN_CLICKED

Step m: Click ‘Add Function’ and Click ‘Edit Code’

How to display the words in the dialog box

How to display the words in the dialog box

To display the words in the dialog box

Step a: Make the MFCAppWizard(exe)

Step b: Make the push button and edit box into the dialog box

Step c: Attaching a Variable the edit box

Step d: View>Class Wizard

Step e: Member Variables tab Class name:CfontDlg Control ID:IDC_EDIT

Step f: Click ‘Add Variable’ Button Member Variable name: m_Data Category: Value Variable types: CString

Step g: Click ‘OK’ button

Step h: Attaching Code to the EN_CHANGE Event

Step i: View>Class Wizard

Step j: Message Maps Class name: CfontDlg Object ID: IDC_EDIT1 Message:EN_CHANGE

Step k: Click ‘Add Function’ button and Click ‘Edit Code’ button

Step l: Enter Code

Step m: attaching code to the WM_PAINT

Step n View>Class Wizard

Step o: Message Maps Class name: CFontDlg Object ID: CFontDlg Message: WM_PAINT

Step p: Click ‘Edit Code’ button

Enter the Code

How to associate the new dialog box with a class

How to associate the new dialog box with a class

To associate the new dialog box with a class

Step a: View>Class Wizard

Step b: They were display the Adding a Class message click ‘OK’ button

Step c: They were display the New Class message box enter the Name

Step d: Make sure the Base class list box is set to Cdialog

How to insert a new dialog box in the project

How to insert a new dialog box in the project

To insert a new dialog box in the project

Step a: Make the MFCAppWizard(exe)

Step b: Right click the dialog box Workspace Window

Step c: Select the Insert Dialog in the menu

How to make the Yes and No message boxes

How to make the Yes and No message boxes

To make the Yes and No message boxes

Step a: Make a Push Button in the dialog box

Step c: View>ClassWizard

Step d: Class Name: CprojectDlg Object ID:IDC_BUTTON4 Message:BN_CLICKED

Step e: Click the ‘Add Function’ button

Step f: Click the ‘Edit Code’ Button

Step g: Enter Code

How to make the Retry and Cancel message boxes

How to make the Retry and Cancel message boxes

To make the Retry and Cancel message boxes

Step a: Make a Push Button in the dialog box

Step c: View>ClassWizard

Step d: Class Name: CprojectDlg Object ID:IDC_BUTTON3 Message:BN_CLICKED

Step e: Click the ‘Add Function’ button

Step f: Click the ‘Edit Code’ Button

Step e:nter the code

How to make the Yes, No and Cancel message boxes

How to make the Yes, No and Cancel message boxes

To make the Yes, No and Cancel message boxes...

Step a: Make a Push Button in the dialog box

Step c: View>ClassWizard

Step d: Class Name: CprojectDlg Object ID:IDC_BUTTON2 Message:BN_CLICKED

Step e: Click the ‘Add Function’ button

Step f: Click the ‘Edit Code’ Button

Step g: Enter Code

How to make the OK and CANCEL message boxes

How to make the OK and CANCEL message boxes

To make the OK and CANCEL message boxes...

Step a: Make the MFCAppWizard(exe)

Step b: Make a Push Button in the dialog box

Step c: View>ClassWizard

Step d: Class Name: CprojectDlg Object ID:IDC_BUTTON1 Message:BN_CLICKED

Step e: Click the ‘Add Function’ button

Step f: Click the ‘Edit Code’ Button

Step g: Enter Code

How to make the menu

How to make the menu

To make the menu

Step a: go to Insert>Resource

Step b: select the menu click the ‘New’ button

Step c: Right the mouse button select properties

Step d: Enter the Caption


How to Control the keyboard

How to Control the keyboard

To Control the keyboard

Step a: Open the Class Wizard

Step b: Select the Following event Class names: CCanDlg Object ID:CCanDlg and Message:WM_KEYDOWN

Step c: Click ‘Add Function’ button

Step d: Click ‘Edit Code’ button

Step e: Enter the code

How to control the mouse

How to control the mouse

To control the mouse

Step a: Open the Class Wizard

Step b: Select the Following event Class names: CCanDlg Object ID:CCanDlg and Message:WM_MOUSEMOVE

Step c: Click ‘Add Function’ button

Step d: Click ‘Edit Code’ button

Step e: enter the code