2005121611103960289

所属分类:串口编程
开发工具:VFP
文件大小:1934KB
下载次数:122
上传日期:2006-11-10 14:57:37
上 传 者yuhaiwang
说明:  MSComm控件资料,Visual Basic 6.0(以下简称VB) 是一种功能强大、简单易学的程序设计语言。它不但保留了原先Basic语言的全部功能,而且还增加了面向对象程序设计功能。它不仅可以方便快捷地编制适用于数据处理、多媒体等方面的程序,而且利用ActiveX控件MSComm还能十分方便地开发出使用计算机串口的计算机通信程序。本文结合计算机通信的两个例子,详细介绍如何在VB中使用MSComm控件。 处理方式
(MSComm information, Visual Basic 6.0 (VB hereinafter) is a powerful, relatively simple programming language. It not only retains the original Basic language functionality, but also an increase of object-oriented programming design functions. It will not only facilitate the efficient preparation of the application to data processing, multimedia and other aspects of the procedure, and the use of MSComm ActiveX control can be very convenient to use the computer to develop the computer serial port Communication Program. Based on computer communication, the two examples in detail how to use VB MSComm. Approach)

文件列表:
common\CN_FILES.CDX (6144, 2001-12-26)
common\CN_FILES.DBF (943, 2001-12-26)
common\GRAPHICS\BLD.BMP (246, 2001-12-26)
common\GRAPHICS\BLDd.BMP (1334, 2001-12-26)
common\GRAPHICS\bullet.bmp (1334, 2001-12-26)
common\GRAPHICS\bulletb.bmp (1334, 2001-12-26)
common\GRAPHICS\CANCEL.BMP (238, 2001-12-26)
common\GRAPHICS\CLOSE.BMP (238, 2001-12-26)
common\GRAPHICS\DATE.BMP (246, 2001-12-26)
common\GRAPHICS\DIRTXTBX.BMP (246, 2001-12-26)
common\GRAPHICS\FILTXTBX.BMP (246, 2001-12-26)
common\GRAPHICS\FIRSTREC.BMP (238, 2001-12-26)
common\GRAPHICS\FLASH.ICO (766, 2001-12-26)
common\GRAPHICS\Generic.ico (1078, 2001-12-26)
common\GRAPHICS\GETDIR.BMP (246, 2001-12-26)
common\GRAPHICS\GETFILE.BMP (246, 2001-12-26)
common\GRAPHICS\graymar.bmp (11078, 2001-12-26)
common\GRAPHICS\GrayMar.gif (10302, 2001-12-26)
common\GRAPHICS\IFCOMBO.BMP (246, 2001-12-26)
common\GRAPHICS\ITL.BMP (246, 2001-12-26)
common\GRAPHICS\ITLd.BMP (1334, 2001-12-26)
common\GRAPHICS\LASTREC.BMP (238, 2001-12-26)
common\GRAPHICS\NEW.BMP (222, 2001-12-26)
common\GRAPHICS\NEXTREC.BMP (238, 2001-12-26)
common\GRAPHICS\ONOFF.BMP (246, 2001-12-26)
common\GRAPHICS\PHNTXTBX.BMP (246, 2001-12-26)
common\GRAPHICS\PRIORREC.BMP (238, 2001-12-26)
common\GRAPHICS\REFRESH.BMP (238, 2001-12-26)
common\GRAPHICS\RX.bmp (1478, 2001-12-26)
common\GRAPHICS\SAVE.BMP (238, 2001-12-26)
common\GRAPHICS\SAVE.MSK (122, 2001-12-26)
common\GRAPHICS\SETGRID.BMP (246, 2001-12-26)
common\GRAPHICS\STATEBOX.BMP (246, 2001-12-26)
common\GRAPHICS\STOP.BMP (2102, 2001-12-26)
common\GRAPHICS\subscpt.bmp (246, 2001-12-26)
common\GRAPHICS\subscptd.bmp (1334, 2001-12-26)
common\GRAPHICS\suprscpd.bmp (1334, 2001-12-26)
common\GRAPHICS\suprscpt.bmp (246, 2001-12-26)
common\GRAPHICS\TRFFC14.ICO (1078, 2001-12-26)
common\GRAPHICS\UNDRLN.BMP (246, 2001-12-26)
... ...

This is the "readme" file for the GenDBCX utility. Introduction ------------ A replacement for Microsoft's GenDBC utility, GenDBCX creates a program that defines a class that contains a separate method to recreate each table, view, connection, relation and referential integrity constraint contained in a database container (.dbc). The major enhancements of GenDBCX over GenDBC are: 1) No more 'Program too large' errors, since the recreation program consists of separate procedures for each table, view, etc., as opposed to GenDBC's monolithic structure; 2) The required available disk space is minimized, as we write directly to the output regeneration file, and avoid the use of memo fields, which can bloat excessively and quickly when you frequently add new strings to their contents; 3) Execution speed is on the order of two to three times faster, mostly due to not using memo fields; 4) Since the output program defines a class, and each recreation routine is a method of that class, you can incorporate GenDBCX's output into an application, and call its methods to recreate individual tables in the database. 5) GenDBCX provides a "hook" between the code that creates each table, and the code that creates the table's properties. Into this hook, you can insert any code that you need, such as appending data from an existing table. Installation ------------ As a simple utility, there's really nothing to install. Simply copy the program file to wherever you want to run it from, and have at it! Usage ----- You call GenDBCX the same way you call GenDBC, i.e. DO GenDBCX [with ""]. You have an additional argument, [""], which represents the name of the class you want GenDBCX to create. The full syntax of the program call is now: DO GenDBCX [with ""[, ""]] Notes ----- In most cases, GenDBCX "straight out of the box" will work just fine for you. If your database container (.dbc) file gets "hosed", just run the program to recreate the .dbc, copy the .dbc, .dct and .dcx files to your data directory, and you're done! In some situations, however, this simple recreation of the database container may not suffice. For those of you who require additional processing of your database tables, we have added the "CustomProcess" hook. "CustomProcess" is a method that is defined at the beginning of the GenDBCX class; it is called after all the tables in your database have been recreated, but before the database rules, relations and triggers are re-instantiated. The CustomProcess method allows you to add any code that your database requires before its rules, relations and triggers are re-instantiated. For example, if you are using GenDBCX to create a VFP database from a FoxPro 2.x database on a regular (or not-so-regular) basis, you can use the CustomProcess hook to append the data from your 2.x tables to your VFP tables before you add your VFP constraints. In order to use the CustomProcess hook, you must do the following: 1) Create a file called CustProc.h, and place it in a directory where the database recreation file can find it; 2) Within CustProc.h, #DEFINE a named constant called CUSTOM_METHOD_LOC, and assign to it the code that you want GenDBCX to #INCLUDE into the database recreation program. For example: #DEFINE CRLF chr(13) + chr(10) #DEFINE TAB chr(9) #DEFINE CUSTOM_METHOD_LOC ; TAB + TAB + "LOCAL laTables[1], pcOutputDirectory, i, lnOldArea" + CRLF + ; TAB + TAB + "CLOSE TABLES ALL" TAB + TAB + "lnOldArea = SELECT()" + CRLF + ; TAB + TAB + "SELECT 0" + CRLF + ; TAB + TAB + "pcOutputDirectory = 'D:\VFP5WORK\CONVERT\OUTPUT\'" + CRLF + ; TAB + TAB + "ADBOBJECTS(laTables,'TABLE')" + CRLF + ; TAB + TAB + "FOR i=1 TO ALEN(laTables)" + CRLF + ; TAB + TAB + " IF FILE(pcOutputDirectory + laTables[i] + '.DBF')" + CRLF + ; TAB + TAB + " USE (laTables[i])" + CRLF + ; TAB + TAB + " APPEND FROM (pcOutputDirectory + laTables[i])" + CRLF + ; TAB + TAB + " ENDIF" + CRLF + ; TAB + TAB + "NEXT i" + CRLF + ; TAB + TAB + "USE" + CRLF + ; TAB + TAB + "SELECT (lnOldArea)" + CRLF Remember, CustomProcess is a separate method; you can do anything you need to do within it to properly recreate your database container and tables. Updates & Problem Notification ------------------------------ To receive updates to this program as they become available, please send a note containing your name, company name, and email address to: steve@northfork.net Please also use this email address to notify us of any problems you encounter using GenDBCX, as well as letting us know of any enhancements that would make the program more valuable to you. Steve Arnott steve@northfork.net CIS 70247,2614

近期下载者

相关文件


收藏者