+ All Categories
Home > Documents > Visual BASIC 1 Introduction. 01010100101010010101010101001010101010...

Visual BASIC 1 Introduction. 01010100101010010101010101001010101010...

Date post: 13-Jan-2016
Category:
Upload: shanon-williams
View: 212 times
Download: 0 times
Share this document with a friend
Popular Tags:
24
Visual BASIC 1 Introduction
Transcript
Page 1: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Visual BASIC 1

Introduction

Page 2: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

0101010010101001010101010100101010101001010101010101001000101010101001010010010101011 0101010010101001010101010100101001010101010101010101001000101010100101010101 010101001010100101010101010101001010101010101010101001000101010100101010101 010101001010100101010101010101001010101101001010101010101010101001010010101010101010101010010001010101001010101010100100010100101010010101001101001010101010101010101001000101010101010010101101010010101001000101010101 0101001001001010100101101001010101010110100100100101010001001010100101101101101001010101010100101010010101010101010101010101 010101001010100101010101010

Computer processors only speak machine code

Page 3: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Assembly Language

• Assembly language was used as a short hand for machine code

• Early programs were very difficult to write and required in-depth knowledge of the processor

MOV R1, XMOV R2, YADD R1, R2MOV X, R1

Page 4: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

High-Level Languages

• High Level Languages were developed to make programming easier

• Special programs called compilers converted these high level languages to machine code

Page 5: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Fortran

• FORTRAN was the first high level language

• Used by scientists and engineers to do calculations

• FORmula TRANslator

Page 6: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

High Level Languages are machine independent

• High Level Languages can be independent of specific processors

• The same program can be re-compiled to work on different machines

• No need to learn a new language to program a new processor

C Compilerfor Mac

C Compilerfor PC

PC Machine Code

Mac Machine Code

C Program

Page 7: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Some languages were developed for specific purposes

• FORTRAN for scientific and engineering calculations

• COBOL for business and banking

• PROLOG for artificial intelligence

Page 8: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Other languages were designed to be used for general purposes

• BASIC: Beginners’ All Purpose Symbolic Instruction Code

• Pascal: named after Blaise Pascal

• C

Page 9: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Visual BASIC

• Visual Basic (VB) is a programming environment from Microsoft

• It is used to build applications that run on the Microsoft Windows operating system

Page 10: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Interfaces

Page 11: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

In the beginning …

• Computers were programmed by re-arranging the connections of wires into sockets

• Output was lights and numbers

Page 12: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Punched Cards & Printers

• Eventually punched cards could be used as input

• Output was to printers

Page 13: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Monitors & Keyboard

• Computers started to look more like those we see today

• Terminals to a mainframe

• Monitor & keyboard• Command Line

Interface

Page 14: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Personal Computers

• Enough processing power to fit on a desk

• Monitor & Keyboard

• Command Line Interface

• MS-DOS

Page 15: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

GUI & Mouse 1973

• The mouse was a very important development

• Xerox PARC’s Alto computer had a 3-button mouse, a bit mapped display, and windows

Page 16: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Xerox Star 1981

• Double-clickable icons

• Overlapping windows• Dialog boxes• 1024 x 768

monochrome display

Page 17: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

1983 Apple Lisa

• Pull-down menus

Page 18: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

• Popularized Graphical Interface

1984 Apple Macintosh

Page 19: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

1990 Microsoft Windows 3.0

Page 20: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

1995 Microsoft Windows 95

• Similar to the MS Windows we have today

Page 21: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Visual BASIC

Page 22: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Visual BASIC

• Visual BASIC takes care of all the Windows interface issues and allows the programmer to concentrate on more important things

Page 23: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

Interface Controls

• VB provides controls that look and behave like standard MS windows interface elements

Page 24: Visual BASIC 1 Introduction. 01010100101010010101010101001010101010 01010101010101001000101010101001010010 010101011 0101010010101001010101010100 10100101010101010101010100100010101010.

VB Interface Controls

• We will learn how to program these controls to make simple Windows applications


Recommended