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

📄 samples.txt

📁 本地网监控客户端程序原码
💻 TXT
📖 第 1 页 / 共 3 页
字号:
   SQL.FRM...........Form to enter and execute SQL statements.
   TABLEOBJ.FRM......Form used to display data in a Table object.
   TABLES.FRM........Form used to display table lists.
   TBLSTRU.FRM.......Form to display and modify table structures.
   VBIMEX.BAS........Import/export specific code.
   VBIMEX.FRM........Import/export form.
   VDADDIN.BAS.......Add-in stub code.
   VDADDIN.CLS.......Add-in stub class module.
   VDADDIN.MAK.......Add-in project file.
   VDCLASS.CLS.......Class module for VisData.
   VDMDI.FRM.........Main MDI form for the application.
   VISDATA.BAS.......Support functions for the application.
   VISDATA.HLP.......VisData Help File.
   VISDATA.MAK.......Project file for the application.
   VISDATA.TXT.......Instructions for making VisData a Visual Basic add-in.
   ZOOM.FRM..........Form to zoom in on character data.
   .FRX Files........Contains binary data for the associated .FRM File.
   .ICO Files........Supplied for modification by user.


TO RUN:
From the File menu, choose Open Project, and select the
VISDATA.MAK file, which is located in the \SAMPLES\VISDATA 
subdirectory of the main Visual Basic directory.

If you want to open a local database, you simply need to choose
the type of database, and a File Open dialog box will be 
displayed with the file type set to the requested data file type.

If you choose ODBC on the Open Database submenu, you will then
see the Open DataBase form.  Since you probably have no 
servers entered, you will need to enter a name for an existing 
SQL server on your network.  If you already know the user ID and 
password, you can add them as well.  The Database name is optional.  
Once you have entered this data, choose OK, and you should be
able to log on to the server.  You may get some more dialogs in 
the process.  Answer any questions you can and ask the SQL 
administrator for help if you run into problems or don't know some 
of the parameters.

Once a database is open, double-clicking a table name
will open the table in the selected form type and recordset type.
Use the Query Builder to create dynasets with selected data from
one or more tables at a time.

The table-type Recordset is always updatable.  The dynaset-type
Recordset will be updatable in most cases except on ODBC with 
no unique index, certain multiple table joins, and other SQL Select 
statements such as count(*), max(), and so forth.  The snapshot-type 
Recordset is never updatable.

======================================
6:  Communications Sample Applications 
    (VBTERM.MAK and DIALER.MAK)
======================================

VBTERM Sample Application
-------------------------

VBTERM is a terminal emulation program using  
the communications control. It illustrates how to use the 
communications control with a serial port.

BACKGROUND:
The communications control allows you to open a serial port,
change its settings, send and receive data through the port, 
and monitor and set many of the different data lines.  
Its dual-method access allows for both polling and 
event-driven communications.

FILES:
   CANSEND.FRM.......Dialog box used during file transfer.
   TERMSET.FRM.......Form used to change the serial port settings.
   TERMSET.FRX.......Binary portion of TERMSET.FRM.
   VBTERM.FRM........The main form.
   VBTERM.FRX........Binary portion of VBTERM.FRM.
   VBTERM.GLO........Public declarations.
   VBTERM.MAK........The project file for the sample application.

TO RUN:
From the Visual Basic File menu, choose Open Project and 
select the VBTERM.MAK file, which is listed in the
\SAMPLES\VBTERM subdirectory of the main Visual Basic directory.
Press F5 or choose Start from the Run menu to run the application.

Dialer Sample Application
-------------------------

The Dialer sample application demonstrates how to dial out using 
the communications control with a modem.

FILES:
   DIALER.FRM........The main form.
   DIALER.MAK........The project file for the sample application.

TO RUN:
From the Visual Basic File menu, choose Open Project and 
select the DIALER.MAK file, which is listed in the
\SAMPLES\VBTERM subdirectory of the main Visual Basic directory.
Press F5 or choose Start from the Run menu to run the application.


=================================================
7:  Data Outline Sample Application (BROWSER.MAK)
=================================================

This sample program demonstrates the use of the data outline control
with an application that browses the BIBLIO.MDB database.  The purpose
of this sample is to demonstrate some of the functionality of the
data outline control.

Features demonstrated:
- Synchronizing a level of the outline to a form.
- Retrieving and moving to hierarchical bookmarks.
- Changing properties of individual levels.

BACKGROUND:
The data outline control allows users to graphically present structured
data from Jet databases in a variety of different ways.  The data
outline also allows you to easily synchronize levels of the outline
to data source controls for editing and displaying more detailed information.

FILES:
   STARTUP.BAS....The standard module that sets up the application.
   BROWSER.FRM....The main form.
   COMMON.FRM.....Common dialog form.
   AUTHORS.FRM....Form for displaying Author information.
   PUBLISH.FRM....Form for displaying Publisher information.
   TITLES.FRM.....Form for displaying Book information.
   BROWSER.MAK....The project file for the sample application.
   BIBLIO.MDB.....Database file.

TO RUN:
From the Visual Basic File menu, choose Open Project and 
select the BROWSER.MAK file, which is listed in the
\SAMPLES\DOUTLINE subdirectory of the main Visual Basic directory.
Press F5 or choose Start from the Run menu to run the application.

If the sample can locate BIBLIO.MDB, it will be automatically opened. 
If not, an Open File dialog box will be displayed asking you to locate it 
(BIBLIO.MDB is installed in the main Visual Basic directory (\VB)).


=======================================================
8:  OLE Automation Sample Applications
    (CLIENT.MAK, SOCCER.MAK, GRAVITY.MAK, GRAVTEST.MAK)
=======================================================

Soccer Sample Application
-------------------------

This sample application illustrates how collection objects are used
in an object application (OLE Automation server). The objects 
provided by this object application can be accessed by any 
OLE Automation controller, and CLIENT.MAK has been designed 
to fully utilize the classes defined in the Soccer application.

BACKGROUND:
This sample application manages the players and teams 
in a soccer league by keeping teams and players 
in collection objects.

FILES:
   SOCCER.MAK.....The project file for the sample application.
   LEAGUE.CLS.....The top-level Application object.
   TEAMS.CLS......The collection class holding Team objects.
   TEAM.CLS.......The Team class.
   PLAYERS.CLS....The collection class holding Player objects.
   PLAYER.CLS.....The Player class.
   SOCCER.BAS.....A standard module.

TO RUN:
From the Visual Basic File menu, choose Open Project and 
select the SOCCER.MAK file, which is listed in the
\SAMPLES\OLESERV subdirectory of the main Visual Basic directory.
Press F5 or choose Start from the Run menu to run the application.

Once running, this project temporarily registers its classes in the 
system registry. You can then start a second instance of Visual Basic 
to run an OLE Automation controller to create instances
of the classes.  For the purposes of this example, SOCCER.MAK should be 
used with CLIENT.MAK, an OLE Automation controller.  SOCCER.MAK 
is the object application, and CLIENT.MAK is the controlling application 
that uses the classes, collections, methods, and properties 
defined in SOCCER.MAK.  See the description for the Client
sample application for more details on using this sample application.

Client Sample Application
-------------------------

This sample program is an OLE Automation controller that uses 
collection objects exposed by an object application (OLE Automation server),
more specifically, SOCCER.MAK.

BACKGROUND:
This sample application presents the user interface for 
managing a soccer league by keeping teams and players 
in collection objects.  It also uses the objects, 
methods, and properties exposed by SOCCER.MAK.

FILES:
   CLIENT.MAK....The project file for this sample application.
   UI.FRM........The form used for user input.
   CLIENT1.BAS...A standard module.
   INITIAL.BAS...A standard module.

TO RUN:
From the Visual Basic File menu, choose Open Project and 
select the SOCCER.MAK file, which is listed in the
\SAMPLES\OLESERV subdirectory of the main Visual Basic directory.
Press F5 or choose Start from the Run menu to run the application.

Once running, this project temporarily registers its classes in the 
system registry. You can then open a second instance of Visual Basic.  
In this second instance, from the Visual Basic File menu, choose Open
Project and select the CLIENT.MAK file, which is listed in the 
\SAMPLES\OLESERV subdirectory of the main Visual Basic directory.
Then, you can run CLIENT.MAK (by pressing F5), which is 
the controlling application that uses the classes, collections, 
methods, and properties defined in SOCCER.MAK.

To use this sample application, under the Teams section, click Add to
add a team to a league you will create.  Then, add players to the team
to fill the positions on the soccer field diagram.  You can do this by 
clicking the Add button under the Players section, and then selecting 
a team and a position for each player.  You can also move players 
from team to team by changing the team associated with a player.  

Once you are finished making changes, you can click the 
Save button to save the league information to a file.  
In subsequent sessions, you can click the Load 
button to load the new file.

Gravity Sample Application
--------------------------

This sample application illustrates how to create OLE Automation 
objects in an object application.  The classes defined in 
this object application can be accessed by any 
OLE Automation controller, and GRAVTEST.MAK has been
designed to fully utilize the classes defined in GRAVITY.MAK.

BACKGROUND:
This sample application tracks the progress of a projectile across
the active window.

FILES:
   GRAVITY.MAK....The project file for this sample application.
   GRAVITY.CLS....The public class module (Ball object).
   GRAVITY.BAS....A standard module.

TO RUN:
From the Visual Basic File menu, choose Open Project and 
select the GRAVITY.MAK file, which is listed in the
\SAMPLES\OLESERV subdirectory of the main Visual Basic directory.
Press F5 or choose Start from the Run menu to run the application.

Once running, this project temporarily registers its classes in the 
system registry. You can then start a second instance of Visual Basic 
to run an OLE Automation controller to create instances
of the classes.  For the purposes of this example, GRAVITY.MAK should be 
used with GRAVTEST.MAK, an OLE Automation controller.  GRAVITY.MAK 
is the object application, and GRAVTEST.MAK is the controlling application 
that uses the classes, methods, and properties 
defined in GRAVITY.MAK.

Gravity Test Sample Application
-------------------------------

This sample application illustrates how to create instances of the classes 
defined in and exposed by an object application (OLE Automation server), 
more specifically, GRAVITY.MAK.

BACKGROUND:
This sample application presents the user interface for tracking a projectile
across the active window and uses the objects, properties, and methods defined
in GRAVITY.MAK.

FILES:

⌨️ 快捷键说明

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