1 / 87

INTRODUCTION TO VISUAL C++

INTRODUCTION TO VISUAL C++. VERSIONS OF VC++. 16-bit versions Microsoft C 1.0 , based on Lattice C , was Microsoft's first C product in 1983. It was not K&R C. C 2.0 added large model support.

Download Presentation

INTRODUCTION TO VISUAL C++

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. INTRODUCTION TO VISUAL C++ Presentation Title | November 28, 2014 | <document classification>

  2. VERSIONS OF VC++ 16-bit versions • Microsoft C 1.0, based on Lattice C, was Microsoft's first C product in 1983. It was not K&R C. • C 2.0 added large model support. • C 3.0 was the first version developed inside Microsoft. It was extremely compatible with K&R and the later ANSI standard. It was being used inside Microsoft (for Windows and Xenix development) in early 1984. It shipped as a product in 1985. • C 4.0 added optimizations and CodeView, a source level debugger. • C 5.0 added loop optimizations and Huge Model (arrays bigger than 64k) support. and the first 32 bit compiler for 80386 were also part of this project. Presentation Title | November 28, 2014 | <document classification>

  3. C 6.0 released in 1989. It added global flow analysis, a source browser, and a new debugger, and included an optional C++ front end. • C/C++ 7.0 was released in 1992. It added built-in support for C++ and MFC 1.0.[2] • Visual C++ 1.0, which included MFC 2.0, was the first version of Visual C++, released in February 1993. It was Cfront 2.1 compliant[3] and available in two editions:[4] • Standard - replaced QuickC for Windows. • Professional - replaced C/C++ 7.0. Included the ability to build both DOS and Windows applications, an optimizing compiler, a source profiler, and the Windows 3.1 SDK.[3] The Phar Lap 286 DOS Extender Lite was also included.[5] • Visual C++ 1.5 was released in December 1993, included MFC 2.5, and added OLE 2.0 and ODBC support to MFC.[6] It was the first version of Visual C++ that came only on CD-ROM. • Visual C++ 1.51 and 1.52 were available as part of a subscription service. • Visual C++ 1.52b is similar to 1.52, but does not include the Control Development Kit. • Visual C++ 1.52c was a patched version of 1.5. It is the last, and arguably most popular, development platform for Microsoft Windows 3.x. It is available through Microsoft Developer Network. Presentation Title | November 28, 2014 | <document classification>

  4. 32-bit versions • Visual C++ 1.0 (original name: Visual C++ 32-bit Edition) was the first version for 32-bit development.[7] Although released when 16-bit 1.5 was available, it did not include support for OLE2 and ODBC. It was also available in a bundle called Visual C++ 16/32-bit Suite, which included Visual C++ 1.5.[8] • Visual C++ 2.0, which included MFC 3.0, was the first version to be 32-bit only. In many ways, this version was ahead of its time, since Windows 95, then codenamed "Chicago", was not yet released, and Windows NT had only a small market share. As a result, this release was almost a "lost generation". Microsoft included and updated Visual C++ 1.5 as part of the 2.x releases up to 2.1, which included Visual C++ 1.52, and both 16-bit and 32-bit version of the Control Development Kit (CDK) were included. Visual C++ 2.x also supported Win32s development. It is available through Microsoft Developer Network. There was a Visual C++ 2.0 RISC Edition for MIPS and Alpha processors, as well as a cross-platform edition for the Macintosh (68000 instruction set). • Visual C++ 2.1 and 2.2 were updates for 2.0 available through subscription. • Visual C++ 4.0, which included MFC 4.0, was designed for Windows 95 and Windows NT. To allow support of legacy (Windows 3.x/DOS) projects, 4.0 came bundled with the Visual C++ 1.52 installation CD. Updates available through subscription included Visual C++ 4.1, which came with the Microsoft Game SDK (later released separately as the DirectX SDK), and Visual C++ 4.2. Version number 3.0 was skipped to achieve version number parity between Visual C++ 4.0 and MFC 4.0[9]. Presentation Title | November 28, 2014 | <document classification>

  5. A VISUAL C++ PROGRAM CONTAINS THE FOLLOWING TYPES OF AREAS THAT ARE PARTS OF VC++ PROGRAM Presentation Title | November 28, 2014 | <document classification>

  6. STRUCTURE OF A VC++ PROGRAM Presentation Title | November 28, 2014 | <document classification>

  7. TOOLBARS AND SHORTCUTS BARS RESOURCE PANE WORKSPACE PANE Presentation Title | November 28, 2014 | <document classification>

  8. VARIOUS TYPES OF FILES IN VC++ Presentation Title | November 28, 2014 | <document classification>

  9. VARIOS TYPES OF PROJECTS IN VC++ PROGRAM Presentation Title | November 28, 2014 | <document classification>

  10. TYPES OF WORKSPACE Presentation Title | November 28, 2014 | <document classification>

  11. BUILDING AN MFC APPLICATION Presentation Title | November 28, 2014 | <document classification>

  12. Presentation Title | November 28, 2014 | <document classification>

  13. Presentation Title | November 28, 2014 | <document classification>

  14. CLASS VIEW IN A VC++ PROGRAM Presentation Title | November 28, 2014 | <document classification>

  15. RESOURCE VIEW OF A VC++ PROGRAM Presentation Title | November 28, 2014 | <document classification>

  16. FILES VIEW IN A VC++ PROGRAM Presentation Title | November 28, 2014 | <document classification>

  17. COMPILING AND RUNNING YOUR PROJECT Presentation Title | November 28, 2014 | <document classification>

  18. DEBUG WINDOW Presentation Title | November 28, 2014 | <document classification>

  19. OUTPUT PANE Presentation Title | November 28, 2014 | <document classification>

  20. OPTIONS IN THE MFC APPLICATION Presentation Title | November 28, 2014 | <document classification>

  21. Presentation Title | November 28, 2014 | <document classification>

  22. types of projects supported by vc++ • ATL COM WIZARD • CUSTOM APPWIZARD • DATABASE PROJECT • WIN32 DYNAMIC LINK LIBRARY • WIN32 STATIC LIBRARY • WIN32 APPLICATION • WIN32 CONSOLE APPLICATION • UTILITY PROJECT Presentation Title | November 28, 2014 | <document classification>

  23. ATL COM WIZARD ATL IS THE ACTIVE TEMPLATE LIBRARY AND IT’S USED FOR WRITING SMALL ACTIVEX CONTROLS. CUSTOM APPWIZARD USED TO DEVELOP MANY APPLICATION AND ALSO BEING USED AS A TOOL FOR SAVING MUCH OF THE PROGRAMMING TIME IN VC++. DATABASE PROJECT IT IS CAPABLE OF CONNECTING THE PROGRAM TO HAVE A CONNECTION WITH THE OTHER KINDS OF DATABASE PROJECTS. MAKE FILE IN THIS NO CODE IS GENERATED. AND BASICALLY USED FOR STANDALONE PPLICATION. MFC ACTIVEX CONTROL WIZARD IS USED FOR BASICALLY FOR THE WEB PAGES. AND FOR VBX controls for achieving the intuitive interfaces. Presentation Title | November 28, 2014 | <document classification>

  24. MFC APPWIZARD(DLL) THESE ARE SMALL FILES THAT ATTACH WITH THE [PROGRAM WHILE EXECUTION FOR ADDING SMALL KIUND OF FACULITIES INT THE PROGRAM OF VC+++. WIN32 APPLICATION THESE ARE BEING USED FOR MAKING AN WINDOWS APPLICATION IN VC++. WIN32 CONSOLE APPLICATION A CONSOLE APPLICATION MUCH LOKS LIKES A DOS BASED APPLICAION WHERE THE USER INTERFACE IS BASICALLY THE COMMAND PROMPT. Presentation Title | November 28, 2014 | <document classification>

  25. WIN32 DLL THESE ARE BASICALLY USED FOR THE DEVELOPING THE DLL FILES AND NOT USED FOR MAKING AN KIND OF MFC APPLICATION. WIN32 STATIC LIBRARY IF PREFER TO MAKE A FILE THAT DONOT DISTRIBUTE TO 9OTHER PARTS OF THE PROGRAM OF VC++.BASICALLY THESE ARE THE FACILITIES IN VC++ FOR SUCH AN PURPOSE. Presentation Title | November 28, 2014 | <document classification>

  26. KEYBORDS EVENTS IN VC++ KEYBORADS EVENTS IN VC++ MEANS THOSE ACTIONS RTAKEN OR TO PERFORM THE ACION SPECIFIED BY THE CONTROLS OR THE COMMANDS ATTACHED TO THESE EVENTS THAT’S THE BASIC FUNDA OF USIONG THEKEYBOARDS EVNTS IN VC ++ PROGRAM. FOR EG: WM_KEYDOWN ON KEY DOWN IS THE HANDLER THAT IS BEING ATTACHED TO THIS EVENT WHOESER ASSOCIATED ACTION IS WHEN A KEY ON THE KEYBOARD IS BEING PRESSED. WM_SYSKEYUP PERFORMS A ONSYSKEYUP BASICALLY WHEN A SYSTEM KEY ON THE KEYBOARD IS BEING PRESSED . Etc . Also there are some of the flags available in the vc++ program that are 0-15 contains the number of lines the key has been preseed as a result of the key being held dow. Presentation Title | November 28, 2014 | <document classification>

  27. MOUSE EVENTS IN VC++ THERE ARE SOME OF THE EVEMNTS THAT ARE BEING ATTACXHED IN THE VC++ PROGRA,M WHICH CORRESNPONDS TO THE MOUSE HANDLING ALSO THERE IS A MESSAGE HADLER OR YOU CAN SAY A EVENT HANDLER PROGRAM IS ATTACHED TO EACH AND EVERY EVEN OF THE KEYBOARD AND MOUSDE SO IF THERE IS ANY KIND OF ACTION IS BEING PRESSED BY THE USER THE CORRESPONDLINGLY EVENT IS BEING STARRTED AND IF NOT THE PRESENCE OF THE EMSSAGE HANDLERE IS NOT PRESENT THEN A MESSAGE GHANDLER IS BEING STARTED and if not present Presentation Title | November 28, 2014 | <document classification>

  28. Using mouse events in your application The general prototype of of keyboard handler function looks like : Void OnMsgName(UNIT nFlags,Cpoint) Presentation Title | November 28, 2014 | <document classification>

  29. Types of resource in vc++. Following are the resaources in vc++. • Accelarator • Bitmap • Cursor • Dialog • Html • Icon • Menu • String Tale • Toolobar • Version Presentation Title | November 28, 2014 | <document classification>

  30. Different resources in vc++ when you insert them by building a application in vc++ you insert them from the resource view and clinking te insert resoruce in insert option of fmenu bar options. Presentation Title | November 28, 2014 | <document classification>

  31. status bar A status bar in vc++ is an area particularly to show tha current status of the selection on which the mouse is pointing for example by default the sttaus shows the press f1 for help you can find in almost all windows of vc++ program or workspace [pane andalso as the default option when being enabled in vc++. Presentation Title | November 28, 2014 | <document classification>

  32. dialog boxes The prompt that appears on the screen of the window of the user screen while attempting ffor the action specified by the user is known as the dialog boxes. These are of three type s ad also used for feeding up the user form or you can say that you can use of these to specify the user feedback as requirements Presentation Title | November 28, 2014 | <document classification>

  33. USING SLIDER CONTROL A SLIDER IS A VISUAL COMPONENT IF A VC++ PROGRAM THAT SHOWS THE VARITION LEVEL AND FROM WHICH YOU CAN CONTROL APARTICUILAR LEVEL.FOR EXAMPLE VOLUME CONTROLLER. SLIDER CONTROL FOR VOLUME CONTROL LEVEL. YOU CAN ALSO SHOWS THE INVARIATION BY GRAPHICALLY THAT SHOWS A COMMON CONTROL LEVEL FOR A PARTICULAR COMPONENT. Presentation Title | November 28, 2014 | <document classification>

  34. SERIALIZATION SERAILIZATION IS A PROCESS.BY WHICH AN OBJECT WRITES ITS STATE (THE CURRENT VALUES OF ITS MEMBER VARIABLES) ONTO A FILE IN SUCH A MANNER THAT ENABLES IT TO RECRETAE ITSELF BACK INTO THE STATE IT WAS BY DESERIALZTION OF THE STORED DATA.SERIALIZATION IS AN IMPORTANT CONCEPT IN WHICH WINDOWS PROGRAMMING BECAUSE . MOST OF THE DATA OF AN APPLICATION EXISTS IN OBJECT FORM.IT ENABLES AN APPLICATIONN TO OPEN AND SAVE DOCUMENTS ALONG WITH ITS DATA .MERELY SAVING THE DATA OF A DOCUMENT WOULD NOT ENABLE THE APPLICATION TO RECREATE THE DOCUMENT FROM THE STORED DATA. Presentation Title | November 28, 2014 | <document classification>

  35. MULTIPLE DOCUMENTS VIEWS UNDERSTANDINFG THE DOCUMENT CLASS WHEN YOU GENERATE YOUR SOURCE CODE WITH APPZWIZARD,YOU GET AN APPLICATION FEATURING ALL THE BELLS AND WISHES OF A COMMERCIAL 32- BIT WINDOWS APPLICATION,INCLUDING A TOOLBAR,A STTAUS BAR, TOOLTIPS,MENUS ETC AND EVEN A About dialog box. Presentation Title | November 28, 2014 | <document classification>

  36. Mfc’S document view architecture separates an application data from the way the user actually views and manipultaes that data.simply,the ocument object is responsi for storing loading and saving the data ,whereas the views object (which is just another type of window))enables the user to see the data, onscreen and yto edit that data in a way that is appropriate to the application. Presentation Title | November 28, 2014 | <document classification>

  37. Sdi and mdi application creted with aPPwizard are document /view applications.For their way of describin the beahviour it is possible to design or code them in vc++ but in sdi application only one document can be opened at a time so they have the facility of one document or window at a single time.for eg. Notepad is the best example of sdi(single document interface)like mspaint. In MDI (multiple document interface) it is possible to open multiple document at a time so in multiple document interface various document can be opened. Presentation Title | November 28, 2014 | <document classification>

  38. activex controls An activex control, like other Windows cntrols you have usedc so far is aself containerd object packed with related functionalities.Simillar to the Windows controls,it can also be included within a container object(such as dialog window). Properties Properties are attributes or controls that are visible to and often modifiable by the container in which it is placed.There are four basicxs\ types of properties of Actives\x controls. Ambient Prperties are provided by the container application of the control ---such as background color etc. so that the control looks like a part of the container application. Extended Properties are those properties of the control ythat are provided and implemented by the container application such as tab order. Stock Properties are implemented by the Activex control development Kit ,such as cont Presentation Title | November 28, 2014 | <document classification>

  39. methods Methods of the qactivex control are functions that can be called by its container application or object.These functrions are made avilable to other applications through Idispatch interface.For detailed treatment of how this interface works. Presentation Title | November 28, 2014 | <document classification>

  40. Events Events are notification messaages that are sent from the control to the container .They notify the container application that an event has happened in realtion to the control and if desired, the application may take an appropriate action in response.Simillar to properties and methoids evnets can also be added to the Activex control project through ClassWizard’s Automation window. Presentation Title | November 28, 2014 | <document classification>

  41. What is Activex Activex is aset of methodolgies and procedures that allow you to create software components.A software component is reusable,seflf-contained module of code that may be used by another application. As it aplies to Activex, a software component is called an Acivex control, AndIndeed by far the most common use of Acivex is to create an Acivex control. Presentation Title | November 28, 2014 | <document classification>

  42. OLE and Activex Activex is based upon the component object model (COM).This model defines the way Activex compliant applications intercat with each other .Specially ,it definesx standard interfacses that one object can use to expose its functionaliyty to another .It is through these interfaces that one application communicates with eac another. In the component object model there are two types of applications and servers.In the simplest sense,a container is a n application that requires data and a servers.In the simplest ,a container is an application that supplies data.A contaoiner can be a compund document.Another term for container is client,The way that container and server communicate is through the interfaces definmed by COM. Presentation Title | November 28, 2014 | <document classification>

  43. Activex Control Macros The DECLARE_DYNCREATE() AND IMPLEMENT _DYNCREATE Presentation Title | November 28, 2014 | <document classification>

  44. MARSHALLING MARSHALLING HAS A PARTICULARLY SIMPLE DEFINTION OF AN OBJECT.IN THIS ON AN OBJECT IS RECORDED ON THE HEAP WITH AN ASSOCIATED METHOD SUITE .THE DATE FIERLDS OF THE OBJECT DEFINE THE STATE AND THE METHOD SUITE DEFINES THE BEHAVIOUS .THE MARSHALLINGALLOOWS THE STAE OF AN OBJECT TO BE HEDEN IN AN IMPLEMENTION MODULE MODULE WITH ONLY THE BEHAVIOUS VISIBLE IN THE INTERFASCE .THIS IS DIFFERENT FROM C# IN WHICH A CLASS FEINITION LISTS BOTH THE MEMBER DATA AND MEMBER FUNCTION .THE C++ MODELS REVEAL WHAT IS ESSENTIALLY PRIVATE INFORMATION TO THE ENTIRE WORLD .WITH MARSHALLING OBJECTS WHAT SHOULD BE PRIVATE CAN REALLY THE PRIVATE. Presentation Title | November 28, 2014 | <document classification>

  45. MARSSSSSSHALLING HAS THE FEATURE OF GARBAGE COLLECTION GARBAGE COLLECTION REALLY REALLY ENABLES ROBUST ,LONG LIVE SYSTEM. • IT PROVIDES A SIMPLE SINGLE INHERITANCE OBJECT SYSYTEM . • GENERIC INTRERFACES AND MODULES ARE OKAY TO REUSE .IT GEERICS ARE CLEANER THAN C++ PARAMETIRIZED TYPES. • EXISTING NON-MARSHALLING LIBRARIES CAN BE IMPOTRTED.MANY EXISTYING C LIBRARIES MAKE EXTENSIVE USE OF MACHINE DEPENDENT OPERATIONS.THIS CAN BE IMPORTED AN UNSAFE.THEN SAFER INTERFACES CAN BE BUILT ON TOP OF TESE WHILE STILL ALLOWING ACCESS. Presentation Title | November 28, 2014 | <document classification>

  46. IT PROVIDES SUCH A STATNDARD INTERFACES FOR CREATING THREADS.IN ADDITION, THE LANGUAGE ITSELF INCLUDES SUPPORT FOR MAGING LOCKS.THE STATNDARD LIBRARIES ARE PROVIEDE AN INTERFACE TO X, IS N OUT LONG OPERTIONS.OT ONLY THREAD-SAFE BUT USES THREADS TO CARRY Presentation Title | November 28, 2014 | <document classification>

  47. DIFFERENT RESOURCES IN VC++ DIFFERENT TYPES OF RESOURCES INCLDES ARE:- • PROJECT:=THE MAIN RESOURCE IN PROJECT ARE:- • FORMS ALL THE .FRM FILES ASSOCIATED WITH THE PROJECT • MODULKES:- ALL THE .BAS MODULES FOR THE PROJECT • CLASS MODULES:- ALL TBHE .CLS FILES FOR THE PROJECT • USER CONTROLS:- ALL DOCUMENT OPBJECTS .DOB FILES IN THE PRJECTY • PROPERTY PAGES:- ALL DESIGNERS .DSR FILES IN THE PROJECT • RELATED DOCUMENTS:- LIST ALL DOCUMENTS TO WHICH TO WHICH YOU WANT A PPOINTER.THE PATH TO THE DOCUMENT IS STORED EITHER THAN THE DOCUMENT ITSELF ,WHEN YOU CLICK VIEW OBJECT,VISUAL BASIC,SEARCHES THE REGISTRY FOR THE DOCUMENT TYPE AND EXCUTES THE APPROPRITEA OPEN COMMAND.YOU CAN PLACE ANY VALID DOCUMENT TYPE IN THE PROJECT. • RESOURCES:- L;IST ALL THE RESOURCES YOU HAVE IN TH EPROJECT. Presentation Title | November 28, 2014 | <document classification>

  48. REGISTERING THE CONTROL SERVER Registering the control class is only half of the registry work needed to registrer an Activex control with the windows operating system .The otyher half involves registering the server for the Activex control. You mage registertion of this eserver by implemnting the DLLRegister server() and DLLUnregisterServer() functions and registering or unregistering the server within.these fubnnctions are called by the control container when an instance of the control class is needed.These prototypes are as follows. STDAPI DIIRegisterServer(); STDAPI DIIUnregisterServer(); The implemention of DIIRegisterServer() simply calls to AfxOleRegisterTypeLib() and ColeObjectFasctory Ex::UpdateRegistryAll(); Presentation Title | November 28, 2014 | <document classification>

  49. Introduction to COM Wht is component It is possible to modify and manipulate a portion of the whole without disturbing the rest of the whole.For instance a morcar is composed of a number of mechanical and other types of components,viz headlights,gearbox,types etc.In case smoething goes wrong with the functioning of the car as a whole instead of reapinring the whole car, only the faulty component is isltaed and repaired or replaced. If the motorcar wre made up of a single unit probably the whole of the car would have needed repainring. Presentation Title | November 28, 2014 | <document classification>

More Related