230 likes | 330 Views
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
E N D
Windows Software DevelopmentLecture 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 • 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
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
Optimization • Fast Code • Small Code • Create Symbolic Debug to be able to debug with Visual Studio (C++ debugger)
Advanced Optimizations • Use with care • Range checking not performed • Unpredictable results may occur • Aliasing = multiple names refer to same variable / memory location
Conditional Compilation • Variation of the If statement • Simplified version of conditional compilation in C #IfexpressionThen statements [#ElseIfexpression-nThen [elseifstatements]] [#Else [elsestatements]] #End If
Conditional Compilation Example #If (cDebugLevel = 1) Then Debug.Print "Basic Debugging" #ElseIf (cDebugLevel = 2) Then Debug.Print "Extended Debugging" #End If
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
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
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
Deploying a Package • Select a package • Select the deployment method – floppy disks, folder… • Assign a name to the deployment script
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
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
What Next? • Tonight • Let’s discuss your Final Project proposal • Next 3 Weeks • VB.NET • May 13, 2002 • Final Project presentations