home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_refer / visbasic / vbasic.txt
Text File  |  1991-06-22  |  13KB  |  254 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.      Microsoft Backgrounder: Microsoft Visual Basic, May 1991
  9.      ========================================================
  10.  
  11.  
  12.      Introduction
  13.  
  14.      The Microsoft Windows graphical environment offers many benefits to
  15.      end users -- ease of use, user interface consistency, inter-
  16.      application integration -- but poses new challenges for programmers.
  17.      Writing Windows applications poses a challenge to programmers because
  18.      the available development tools lack the very combination of
  19.      functionality and ease of use that the applications themselves
  20.      feature.
  21.  
  22.      Tools for Developing Graphical Applications
  23.  
  24.      Microsoft Windows applications make doing powerful things easy. The
  25.      Microsoft Visual Basic programming system creates applications that
  26.      tap into such Windows functionality as rich forms and controls, pull-
  27.      down menus, graphics and animation, dynamic data exchange (DDE) and
  28.      multi-tasking. These are difficult for Windows programmers using
  29.      traditional tools to develop, but very easy to achieve in the
  30.      Microsoft Visual Basic programming system. In general, software
  31.      development tools have resided at either end of a spectrum, and each
  32.      extreme forced developers to make tradeoffs. High-level tools allow
  33.      faster development, which is paid for in reduced flexibility and
  34.      control and greater runtime overhead. Low-level tools provide better
  35.      control and less overhead, but require more programming skill. Thus,
  36.      choosing a tool often involves making an undesirable compromise.
  37.  
  38.      Microsoft Visual Basic: Real Windows Applications Really Fast
  39.  
  40.      Microsoft Visual Basic programming system is a general-purpose
  41.      graphical application development system for the Microsoft Windows
  42.      environment that bridges the extremes of the tool spectrum described
  43.      above. The Visual Basic system addresses the need for a Windows
  44.      programming solution that is both serious and easy to use. It is
  45.      specifically designed to accelerate Windows version 3.0 development by
  46.      harnessing the power of the graphical environment to make mainstream
  47.      programmers more productive. Visual Basic helps programmers create
  48.      real Windows applications real fast. Extremely easy to use, it is the
  49.      ultimate productivity tool.
  50.  
  51.      Visual Basic Key Features
  52.  
  53.      The following is a description of the key features of the Microsoft
  54.      Visual Basic programming system.
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.      Visual Design Tools for the User Interface
  62.  
  63.      The Visual Basic system offers rich design tools that enable the
  64.      visual components of an application to be designed with drawing tools.
  65.      No code is required to create graphical user interfaces. Programs are
  66.      designed, created and run within the target Windows environment.
  67.  
  68.      With Visual Basic programming system, windows and dialog boxes are
  69.      designed visually by selecting a tool from the Toolbox of controls and
  70.      then placing and sizing them on a form. All the Windows controls are
  71.      included in the Toolbox: command buttons, option buttons, check boxes,
  72.      simple and drop-down list boxes and combo boxes, text fields, labels
  73.      (static text), pictures (that can display icons, bitmaps, Windows
  74.      metafiles and programmatic graphics), Frame (to visually and
  75.      functionally group controls), Timer (that responds to the system
  76.      clock), scroll bars, and file system controls (drives, directory and
  77.      file list boxes). These controls have the appearance and behavior of
  78.      Windows controls such as three-dimensional command buttons that push
  79.      in and out, scroll bars that scroll, and edit fields that accept text
  80.      input and support cutting and pasting without writing any code.
  81.  
  82.      Visual design tools are also used to set the attributes of a form's
  83.      appearance and behavior, from within the Visual Basic environment. The
  84.      Property Bar provides a list of available properties for each type of
  85.      control. A color palette offers a visual way to assign color
  86.      properties. Menus, complete with access keys and accelerators, are
  87.      created in outlining fashion in a menu design window. A project or
  88.      application can include many forms.
  89.  
  90.      A Structured, Powerful Programming Language
  91.  
  92.      The Visual Basic language is a powerful, structured, general-purpose
  93.      programming language. It is a derivative of the Microsoft QuickBasic
  94.      modern programming system. Visual Basic language offers all the modern
  95.      programming structures such as Subs and Functions, Block
  96.      If...Then...Else..., Select Case, Do While/Until, For/Next and error
  97.      trapping with an easy-to-learn syntax.
  98.  
  99.      An Event-Driven Programming Model
  100.  
  101.      The Visual Basic system introduces a high-level, event-driven
  102.      programming model that is especially suited for programming in a
  103.      graphical environment. Events such as mouse clicks and key presses are
  104.      automatically detected and processed by the system. The Visual Basic
  105.      programmer doesn't need to deal with event trapping or Windows message
  106.      dispatching and can simply tell the Visual Basic application how to
  107.      respond to a specific recognized event on a particular form or
  108.      control. The Visual Basic system's visual design tools, combined with
  109.      its event-driven nature, free the programmer to think of how the
  110.      application should look and behave, instead of having to concentrate
  111.      on lower-level system events or coding the user interface.
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.      A Fast, Responsive Coding and Debugging Environment
  119.  
  120.      The Microsoft Visual Basic programming system's combination of an
  121.      intuitive front-end building tool with an easy-to-learn programming
  122.      language creates a highly productive development environment.
  123.  
  124.      Further productivity is realized by the system's threaded p-code
  125.      incremental compiler, a technology first introduced in Microsoft
  126.      QuickBasic programming system version 4.0 in 1987. Each line of code
  127.      is automatically parsed and incrementally compiled as soon as it is
  128.      typed in. Syntax errors are trapped immediately, alerting the
  129.      programmer to any syntax problem. The incremental compilation allows a
  130.      very fast transition from Design mode to Run mode. Break mode is also
  131.      available when the program encounters a runtime error or a breakpoint
  132.      in the code. The programmer can then single-step or procedure-step
  133.      through the application. The programmer also can set the next
  134.      statement to be executed anywhere within a procedure. An Immediate
  135.      window lets the programmer interact with the application while it is
  136.      temporarily suspended in the running state. The programmer can check
  137.      or even change the value of a variable, or enter any valid line of
  138.      code, which is directly executed without affecting the source code.
  139.      The programmer can then copy code entered in the Immediate window to
  140.      the Code window, to be included in the program's source code. This
  141.      revolutionary technology, first introduced in Microsoft QuickBasic
  142.      system version 4.0, is the threaded p-code incremental compiler.
  143.  
  144.      For additional productivity, help is readily available in both online
  145.      and printed form. A detailed computer-based tutorial gets the user up
  146.      and running fast, and manuals (Programmer's Guide and Language
  147.      Reference) provide further training and reference materials. Context-
  148.      sensitive online Help provides readily available reference information
  149.      on the programming language and environment. Code examples from Help
  150.      can be copied and pasted to an application's source listing.
  151.  
  152.      The Ability to Create Real Windows .EXE Files
  153.  
  154.      When a program is designed, coded, debugged and fully functional, the
  155.      programmer simply chooses Make EXE File from the File menu to create
  156.      an .EXE file that can be freely distributed, without any royalties or
  157.      runtime fees. .EXE files can have all the features generally
  158.      associated with Microsoft Windows programs, such as multiple windows,
  159.      pull-down menus, standard controls (command buttons, text fields,
  160.      option button), graphics and icons, drag-and-drop and DDE.
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.      Interoperability and Extensibility
  168.  
  169.      Microsoft Visual Basic programming system gives programmers access to
  170.      DDE and dynamic link libraries (DLLs) for interoperability and
  171.      extensibility with other applications. Inter-application communication
  172.      and integration is available via DDE. Visual Basic applications can be
  173.      DDE clients, servers or both. The environment offers high-level DDE
  174.      (paste-link) as well as programmable DDE in the language. Visual Basic
  175.      environment includes a rich set of DDE events (LinkOpen, LinkClose,
  176.      LinkExecute, LinkError), properties (LinkMode, LinkTopic, LinkItem,
  177.      LinkTimeout), and methods (LinkExecute, LinkPoke, LinkRequest,
  178.      LinkSend).
  179.  
  180.      Visual Basic programmers can access external routines in DLLs,
  181.      including directly calling the Windows API (applications programming
  182.      interface). This is accomplished with a very straightforward syntax. A
  183.      one-line Function or Sub Declaration is all that is required to use an
  184.      external DLL routine as though it were built into the Visual Basic
  185.      system's language.
  186.  
  187.      Users can gain powerful additional functionality by extending the
  188.      Microsoft Visual Basic development environment with custom controls.
  189.      Microsoft has separately announced the Visual Basic Control
  190.      Development Kit, which allows Windows developers to create extensions
  191.      to the Visual Basic system. Custom controls can have predefined
  192.      properties and events and some built-in functionality, just like the
  193.      standard controls in the Visual Basic Toolbox. A Visual Basic
  194.      programmer can load a custom control into a project, then assign
  195.      properties and write code for it just as though it were a built-in
  196.      control. Custom controls, like the standard ones, can trap events and
  197.      call the appropriate event procedures written in Visual Basic
  198.      language. This mechanism allows the Visual Basic environment to be
  199.      extended in many different ways, providing custom user-interface
  200.      components and specialized functionality such as multimedia, data
  201.      access or communications capabilities.
  202.  
  203.      Visual Basic For High Productivity
  204.  
  205.      Visual Basic programming system is designed to make Windows
  206.      application developers more productive regardless of skill level or
  207.      application complexity. Its tightly integrated graphical development
  208.      environment helps move applications from concept to executable code in
  209.      the shortest possible time.
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.      The Visual Basic User
  217.  
  218.      Users of the Microsoft Visual Basic system have the common task of
  219.      creating Windows applications, although they come to it with different
  220.      backgrounds and skills. They are professional programmers working with
  221.      small ISVs, VARs and system integrators; part-time programmers,
  222.      including engineers, scientists, analysts and educators; corporate
  223.      development staff and MIS professionals; and general PC "power users"
  224.      who want to create their own Windows applications. Visual Basic system
  225.      doesn't require programming experience, but it is helpful if the user
  226.      is familiar with general programming concepts. Anyone who has written
  227.      a macro or batch file, or has programmed in any high-level language,
  228.      can be productive very quickly with Microsoft Visual Basic. Using the
  229.      Visual Basic system, programmers can carry out a variety of tasks,
  230.      including writing standalone GUI applications; integrating
  231.      applications; developing application front ends, utilities or tools,
  232.      and graphical display-oriented programs; and prototyping.
  233.  
  234.      Summary
  235.  
  236.      As Microsoft Windows grows in popularity, development environments are
  237.      naturally evolving toward graphical hosts, allowing programmers to
  238.      realize the productivity benefits of the graphical user interface.
  239.      Microsoft visual Basic programming system is a low-cost (under $200
  240.      U.S. suggested retail price) Microsoft Windows-hosted and targeted
  241.      development tool that uses an event-driven programming model. It
  242.      offers high-level visual design tools to help programmers develop
  243.      interfaces.
  244.  
  245.      A graphical tool for graphical systems, the Visual Basic programming
  246.      system provides a simple solution to the otherwise complex task of
  247.      creating and integrating real Windows applications. It is the only
  248.      general-purpose, high-productivity programming system for the
  249.      Microsoft Windows environment.
  250.  
  251.      +-----------------------------------------------------------+
  252.      | Processed using OmniPage/386 OCR software from Caere Corp |
  253.      +-----------------------------------------------------------+
  254.