1 / 11

Toegepaste Informatica Keuzevak C++ 3°jaar

Toegepaste Informatica Keuzevak C++ 3°jaar. Studiefiche. Software Boek (hfst 3-5) Presentatie (website). C++ onder Windows. API = Application Programming Interface OWL = Object Windows Library (Borland) MFC = Microsoft Foundation Classes

aiko-stark
Download Presentation

Toegepaste Informatica Keuzevak C++ 3°jaar

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Toegepaste InformaticaKeuzevak C++ 3°jaar

  2. Studiefiche Software Boek (hfst 3-5) Presentatie (website)

  3. C++ onder Windows • API = Application Programming Interface • OWL = Object Windows Library (Borland) • MFC = Microsoft Foundation Classes Opmerking: een Windows Programma is EVENT DRIVEN

  4. Ontwikkelomgeving • Visual Studio : centrale deel van Visual C++ • Opstarten via Microsoft Visual C++ • Interfaces voor projecten, source files, resource files • Tools voor linken, uitvoeren, testen van toepassingen • Geïntegreerde toegang tot help system

  5. Ontwikkelomgeving • Project Workspaces: • organisatie van files, projecten en project configuraties • Creatie Project Workspace: • creatie directory voor Project Worskpace • creatie Project Workspace File • 2 manieren: • Blank project Workspace • Wizard • Creatie van een nieuw project: • File, New, Projects • Selecteer projecttype • Create New Workspace / Add to current workspace

  6. Ontwikkelomgeving • Project Types: • MFC AppWizard (exe) • Win32 Application • Win32 Console Application

  7. Ontwikkelomgeving • 3 manieren om een project te bekijken • Class View: • Klassen in het project (members) • hiërarchische voorstelling van de klassen in andere klassen • Globale variabelen en functies • Resource View: • Overzicht van alle resources in het project (vb. menu’s, dialogs,…) • File View: • Overzicht van alle source files in het project

  8. Voorbeeld1 • Gewone toepassing onder DOS • Zet “Hello, World!” op het scherm • File • New: Voorbeeld1 • Win 32 Console Application • A “Hello, World!” Application

  9. Voorbeeld2 • Windows toepassing • File • New: Voorbeeld2 • MFC AppWizard (exe) • Single document

  10. Ontleding C++ Programma zonder AppWizard • AppWizard creeërt 5 klassen (zie Class View): • CVoorbeeld2App • CMainFrame • CVoorbeeld2Doc • CVoorbeeld2View • CAboutDlg • Programma uitvoeren zonder 1 lijn code toe te voegen • Alle klassen beginnen met C • Data members van een MFC klasse beginnen met m_ • # include <afxwin.h>

  11. TextEditor • File • New • Project: TextEditor • MFC AppWizard (exe) • Step 4 of 6: Advanced • File Extension: ted • Step 6 of 6 • CTextEditorView Base class: CEditView

More Related