⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme_first.txt

📁 这个是grs源程序,mo在图象显示上很好,所以大家一定要下载
💻 TXT
字号:


MapObjects Sample Map Viewer:  "moView2" 


______________________________________________________________________

Contents

A.  What is moView2?
B.  How to use moView2.
C.  Troubleshooting.

______________________________________________________________________



A.  WHAT IS moView2?

  moView2 is an unsupported Visual Basic 6.0 sample application 
  project.  It has been designed to demonstrate much of the 
  functionality provided with MapObjects version 2.0 within
  a simple application framework.  

  You may use the Visual Basic code in moView2 to jump-start
  your application development and for guidance on solving some
  practical interface issues when designing a graphical user
  interface for mapping.
  
  Some of moView2 is documented in the book "Building
  Applications with MapObjects 2.0" which is provided with
  your MapObjects distribution.  Additionally, you will find 
  that the code within the modules of this project are commented
  quite liberally to help you follow the process flow.

A.  HOW TO USE moView2.

  Upon installation of the MapObjects software, the moView sample 
  application project is stored in this folder:  

        <path_to_MapObjects>\samples\vb\moView2
  
  Inside this "moView2" folder is a Visual Basic 6.0 project
  file called "moView2.vbp".  Startup Visual Basic and open
  this project with the "File | Open Project..." menu item.
  All of the modules (form, standard, class) that belong to
  this project will be present, all dependent controls will be 
  listed in the toolbox, and all other referenced components 
  will be available.  

  *** IMPORTANT ***
  There is a small chance that you may receive error message 
  popup windows generated by Visual Basic immediately upon 
  attempting to open or run this project.  This is an indicator 
  of required components missing from your computer.  moView2
  depends on several non-MapObjects components for proper 
  operation.  All of the components required to run moView2
  successfully are included either with the MapObjects software,
  or are included with Visual Basic.  See the "Troubleshooting" 
  section of this document for details on how to resolve any
  problems you may run into.


B.  TROUBLESHOOTING.

In order to use moView2 error-free, you will need to ensure
that the following controls have been installed onto your
Visual Basic 6.0 development computer, and listed with the
operating system registry along with their respective 
design-time licenses, if any.  

MO20.OCX - ESRI MapObjects 2.0 Map Control
  GUID:  9BD6A640-CE75-11D1-AF04-204C4F4F5020 version 2.0#0
MO2LEG~1.OCX - ArcExplorer Legend (mo2legend.ocx)
  GUID:  6E9D12E3-A025-11D2-9F40-00C04F8ECE6F version 1.0#0
COMCTL32.OCX - Microsoft Windows Common Controls
  GUID:  6B7E6392-850A-101B-AFC0-4210102A8DA7 version 1.3#0
GRID32.OCX - Microsoft Grid Control
  GUID:  A8B3B723-0B5A-101B-B22E-00AA0037B2FC version 1.0#0
COMDLG32.OCX - Microsoft Common Dialog Control 6.0
  GUID:  F9043C88-F6F2-101A-A3C9-08002B2F49FB version 1.2#0
TABCTL32.OCX - 
  GUID:  BDC217C8-ED16-11CD-956C-0000C04E4C0A version 1.1#0

If you receive popup error message windows generated by
Visual Basic during the opening of the "moView2.vbp" project
file, pay attention to the component name mentioned in the
error, and use the information below to fix the problem 
regarding the missing component.

The discussions below will help you trouble-shoot any control
dependency problems you may have with the use of moView2.


MO20.OCX
  The first control listed above is the OCX file that is the
  major part of the MapObjects product you have installed
  onto your system.  Your computer may have more than one
  copy stored onto it, however only one of these copies can
  be listed with your operating system's registry.  Not only
  does the MO20.OCX need to registered, but this registered 
  copy needs to be in the same folder as the MO20.LIC file.
  
  Registration of this control should have been done 
  automatically when you originally installed the MapObjects
  software onto your computer, however there are a few extreme
  situations where your development copy of MO20.OCX can become
  unregistered.  This possibility is true of any registered 
  control.  If this occurs, you will simply need to re-register 
  this OCX.  See the instructions below on how to register an OCX.

  This MO20.LIC file is needed to enable this use of the
  MO20.OCX in development mode.  You do not need this MO20.LIC 
  file to run applications that include MapObjects components, 
  however you do need this file to build MapObjects applications 
  or otherwise use the MO20.OCX in development-mode.  It is 
  against your license agreement with ESRI to distribute the 
  MO20.LIC file to anyone else.


MO2LEG~1.OCX or MO2LEGEND.OCX
  This second control listed above is the map legend control
  used on moView2's "frmMain" Form.  It is an ArcExplorer
  component that you can use to build legends into your
  MapObjects applications.  This file simply needs to be listed 
  with your operating system's registry in order to run applications
  that contain it, or for you to use this control in development-
  mode.  It requires no additional license.

  If you find that you are unable to use this control in
  development-mode or at run-time, but the OCX file itself
  is in fact stored on your hard-drive (or otherwise accessible),
  then you will need to manually register the OCX with your
  operating system's registry.  See the instructions below
  if this is necessary.

  If you find that you are unable to find this control anywhere
  accessible to your computer, you can install this file onto
  your computer by running MapObjects' SETUP.EXE again, 
  selectively installing this legend component.  


COMCTL32.OCX
GRID32.OCX
COMDLG32.OCX
TABCTL32.OCX
  The last four controls listed above are a part of the set
  of controls that are included as add-ons to your copy of
  Visual Basic 6.0.  If they do not appear in your VB
  "Project | Components..." dialog box, try to find them 
  installed on your PC anywhere.  If you find them, load them
  into your operating system's registry using the instructions
  below.  If you do not see them installed anywhere accessible
  to your computer, you will need to run Visual Basic 6.0
  SETUP.EXE again to selectively install and register these
  components.

  Not only do these four controls need to be installed and
  registered onto your system, Microsoft requires that the
  design-time license for the use of these four controls be
  registered as well.  To do this, merge the VBCTRLS.REG file 
  in the \Tools\Controls folder of your VB product media into 
  your registry.  You can merge this file into your registry 
  using REGSVR32.EXE (Win95 or WinNT4) or REGED32.EXE (WinNT3.51).  
  The command syntax is:

	regedit vbctrls.reg

  Alternatively, on Windows 95 or Windows NT 4.0, you can right 
  click on the VBCTRLS.REG file and select Merge on the context 
  menu to merge licensing into your registry.


INSTRUCTIONS ON HOW TO REGISTER OCX COMPONENTS
  There are three ways to register components (OCX, DLL, etc.)
  into your operating system's registry:

  1)  Run this command line:
        <path_to>REGSVR32.EXE <path_to_the_component_file>
      For example:  
        C:\WINNT\SYSTEM32\REGSVR32.EXE C:\WHATEVER\MY.OCX

  2)  While in Explorer, right mouse click the OCX file and
      select "Register" from the pop-up menu.

  3)  While in Explorer, drag-drop the OCX file onto the
      REGSVR32.EXE file.

  After you do either of the three methods above, you should
  receive a message saying that the registration of that control
  succeeded.  If you did not find those files, you may need to
  run the applicable software SETUP.EXE again, to selectively 
  install those components.  You should be able to restart
  a new session of Visual Basic and now have access to these
  components.


  GOOD LUCK!

     - ESRI's MO Team

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -