Windows programming using mfc and visual c net
Download
1 / 29

Windows Programming Using MFC and Visual C ++ .Net - PowerPoint PPT Presentation


  • 80 Views
  • Uploaded on

Windows Programming Using MFC and Visual C ++ .Net. Introduction. INTRODUCTION. This course covers the fundamental concepts and techniques necessary to write Windows-based interactive programs

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Windows Programming Using MFC and Visual C ++ .Net' - marsha


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Windows programming using mfc and visual c net

Windows Programming Using MFC andVisual C++ .Net

Introduction


Introduction
INTRODUCTION

  • This course covers the fundamental concepts and techniques necessary to write Windows-based interactive programs

  • We will use the Visual Studio, Visual C++ .Net and Microsoft Foundation Classes to discuss the above concepts

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Introduction1
INTRODUCTION

  • Contents:

    • Events and Event Handling

    • Windows, Dialogs and Controls

    • Menus and Toolbars

    • Application Organization

      • Document/View Architecture

    • Printing and Print Preview

    • Multi-Threaded Programming

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Requirements
REQUIREMENTS

  • Working knowledge of C++including:

    • Classes

    • Inheritance

    • Virtual functions

    • Late binding

    • Template classes

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Course resources
COURSE RESOURCES

  • Web address:

    http://www.cs.fiu.edu/~milani/cop4226

    Here you will find class notes, class presentations, assignments, class bulletin board, various announcements and dates and more

  • Text Book:

    I am not using any particular text book. There will be plenty of reading material on the course web site and MSDN libraries have an extensive set of online manuals

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Grading
GRADING

  • Exam1 30%

  • Exam2 30%

  • Programming and Homework Assignments 40%

    • 2-3 programs

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Course overview
COURSE OVERVIEW

  • Introduction to Visual Studio

    • Projects

    • Views

    • Wizards

    • Different Application Types

    • Resources

    • Editors

    • MSDN Library

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Course overview1
COURSE OVERVIEW

  • Introduction to Windows

    • Kernel

    • GDI

    • User

    • Window Classes

    • Events and Messages

    • Message Loop

    • Window Procedures

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Course overview2
COURSE OVERVIEW

  • Microsoft Foundation Classes

  • Message Boxes

  • Controls

    • Push Buttons

    • Radio Buttons

    • Check Boxes

    • Slider Controls

  • Data Exchange

  • Control States

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Course overview3
COURSE OVERVIEW

  • Multi Document Applications

    • Application

    • ChildFrame

    • MainFrame

    • Document

    • View

  • Menus

  • Toolbars, Tooltips

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Course overview4
COURSE OVERVIEW

  • Graphical Device Interface

    • Device Contexts

    • Mapping Modes, Physical and Logical Coordinates

    • Fonts

  • Context Menus

  • Property Sheets

  • Printing and Print Preview

  • Splash Screens

  • Multi-Threaded Programming

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Visual studio
VISUAL STUDIO

  • The Visual Studio is an integrated environment for developing Windows applications

  • The programmer is provided with appropriate tools to view, modify and edit different parts of the program

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Visual studio1
VISUAL STUDIO

  • An application consists of many parts that together make up a project:

    • Classes

    • Resources

      • Dialogs

      • Menus

      • Icons

      • Toolbars

  • Parts of an application are stored in different files that are contained within a folder called the project workspace

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Application types
APPLICATION TYPES

  • Dialog Based Application

    • The main window is a Dialog Box

    • Performs a well defined task

      • Calculator

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Application types1
APPLICATION TYPES

  • Single Document Application

    • Allows opening of only one document at any given time

      • Notepad

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Application types2
APPLICATION TYPES

  • Multiple Document Application

    • Allows opening of more than one document at any given time

    • Each document is displayed within a Childframe which is in turn contained within the client area of the MainFrame

      • Word

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Wizards
WIZARDS

  • Wizards assist programmers by

    • constructing a minimal application that is then enhanced by the programmer

      • MFC AppWizard

      • MFC Console Application

    • allowing the programmer to modify the program in a fairly high level

      • Class Wizard

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Wizards1
WIZARDS

  • AppWizard is a tool that based on user specifications, writes a minimal Windows application using MFC

  • Class Wizard is a tool that assists programmer write classes, add members to classes and write event-handlers

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Creating a new project
CREATING A NEW PROJECT

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


File types
FILE TYPES

File Types

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Project types
PROJECT TYPES

Wizards

Project Workspace

Project Name

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Mfc appwizard
MFC AppWizard

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Mfc appwizard1
MFC AppWizard

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Visual studio2
VISUAL STUDIO

  • Different parts of the Project are presented in different views:

    • Class View

    • Resource View

    • Solution View

  • Documentation is shown within MSDN (Contents)

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Building a project
BUILDING A PROJECT

  • Building a project requires compiling all files that have been changed since last build and then linking them

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Class view

Presents and allows the projects underlying classes

CLASS VIEW

Classes and members

Text Editor

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Resource view
RESOURCE VIEW

  • Presents and allows manipulation the project’s resources

Resources

Resource Editor

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Solution view
SOLUTION VIEW

  • Presents and allows direct manipulation of the project’s files (learn not to use it!)

Workspace files

Editor

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


Msdn library
MSDN LIBRARY

  • Presents various documentation

Introduction to Windows Programming Using MFC and Visual C++ .Net

Introduction


ad