1 / 23

Windows Software Development Lecture 11

Windows Software Development Lecture 11. MIS288 Instructor – Larry Langellier. Where Are We?. Last Lecture HTML Help HTML Help Workshop Creating and compiling an HTML Help System Connecting the help system to an application Developing context-sensitive help

shakti
Download Presentation

Windows Software Development Lecture 11

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. Windows Software DevelopmentLecture 11 MIS288 Instructor – Larry Langellier

  2. Where Are We? • Last Lecture • HTML Help • HTML Help Workshop • Creating and compiling an HTML Help System • Connecting the help system to an application • Developing context-sensitive help • Tonight – Program Deployment and Maintenance • Understand the Visual Basic compiler and the effect of compiler options • Create an installation program with the Package and Deployment Wizard

  3. The Visual Basic Compiler • Visual Basic produces two types of code • P-code (pseudocode) is tokenized intermediate code requiring the full services of the run time library • Cannot run on its own • Is interpreted • Native code is true executable code • Executes more rapidly

  4. Setting Compiler Options

  5. Optimization • Fast Code • Small Code • Create Symbolic Debug to be able to debug with Visual Studio (C++ debugger)

  6. Advanced Optimizations • Use with care • Range checking not performed • Unpredictable results may occur • Aliasing = multiple names refer to same variable / memory location

  7. Conditional Compilation • Variation of the If statement • Simplified version of conditional compilation in C #IfexpressionThen statements [#ElseIfexpression-nThen [elseifstatements]] [#Else [elsestatements]] #End If

  8. Conditional Compilation Example #If (cDebugLevel = 1) Then Debug.Print "Basic Debugging" #ElseIf (cDebugLevel = 2) Then Debug.Print "Extended Debugging" #End If

  9. Package and Deployment Wizard • Purpose • Create a Setup program that will install an application • Deploy desktop applications using floppy disks or CD-ROMs • Provide support for uninstalling an application • Deploy application updates

  10. The Setup program • Typically: • Copies the program to the destination computer’s hard disk • Copies dependent files to the destination computer • Updates the Registry • Updates the Start menu

  11. Building A Package • Start the Package and Deployment Wizard • Start menu -> MS VB 6.0 -> Tools • Select a folder where the package will be built • Select the files to be included in the package • Supply an installation title • Specify where the Start menu location • Define installation locations • Identify shared files

  12. Building a Package (cont.)

  13. Building a Package (cont.)

  14. Building a Package (cont.)

  15. Building a Package (cont.)

  16. Building a Package (cont.)

  17. Building a Package (cont.)

  18. Building a Package (cont.)

  19. Building a Package (cont.)

  20. Deploying a Package • Select a package • Select the deployment method – floppy disks, folder… • Assign a name to the deployment script

  21. Installing/Removing a Program • Installation • Run the setup.exe program • Select an installation location • Select a Start menu program group • Removing a Program • Activate the Control Panel and double-click Add/Remove Programs • Select the program and confirm deletion

  22. Just Do It! • Work on Exercise 17.3 from the textbook (pages 959-960) • We will discuss the solution after you’ve worked on problem for a while • Call me over if you have questions – don’t sit there stumped for long

  23. What Next? • Tonight • Let’s discuss your Final Project proposal • Next 3 Weeks • VB.NET • May 13, 2002 • Final Project presentations

More Related