cport3

所属分类:Pascal/Delphi编程
开发工具:Delphi
文件大小:1322KB
下载次数:161
上传日期:2006-09-08 11:57:16
上 传 者sabason
说明:  用Delphi写串口通信程序这最好的串口控制控件
(write with Delphi serial communication procedure to the best serial control Controls)

文件列表:
cport-3.0\.cvsignore (7, 2003-05-19)
cport-3.0\2ccc.com.nfo (946, 2004-02-23)
cport-3.0\CHANGELOG.txt (2309, 2003-05-19)
cport-3.0\CPort.cnt (1375, 2003-03-17)
cport-3.0\CPort.hlp (151862, 2003-03-17)
cport-3.0\CPort.toc (1375, 2003-03-17)
cport-3.0\examples\delphi\BarCodeScaner.pas (3571, 2003-03-17)
cport-3.0\examples\delphi\ComExample.cfg (562, 2006-02-17)
cport-3.0\examples\delphi\ComExample.dof (5018, 2006-02-17)
cport-3.0\examples\delphi\ComExample.dpr (256, 2003-03-17)
cport-3.0\examples\delphi\ComExample.exe (502784, 2006-02-17)
cport-3.0\examples\delphi\ComExample.res (876, 2006-02-17)
cport-3.0\examples\delphi\ComExample.~dpr (256, 2003-03-17)
cport-3.0\examples\delphi\ComMainForm.dcu (6861, 2006-02-17)
cport-3.0\examples\delphi\ComMainForm.ddp (51, 2005-07-01)
cport-3.0\examples\delphi\ComMainForm.dfm (2598, 2005-07-01)
cport-3.0\examples\delphi\ComMainForm.pas (2514, 2005-07-01)
cport-3.0\examples\delphi\CPortMonitor.pas (17628, 2003-03-17)
cport-3.0\examples\delphi\MiniTerm.dpr (248, 2003-03-17)
cport-3.0\examples\delphi\MiniTerm.exe (519168, 2006-02-17)
cport-3.0\examples\delphi\ModTest.dpr (1557, 2003-03-17)
cport-3.0\examples\delphi\ModTest.exe (428032, 2005-07-01)
cport-3.0\examples\delphi\MTMainForm.dcu (5458, 2005-07-01)
cport-3.0\examples\delphi\MTMainForm.dfm (1830, 2003-03-17)
cport-3.0\examples\delphi\MTMainForm.pas (1562, 2003-03-17)
cport-3.0\examples\delphi (0, 2006-04-28)
cport-3.0\examples\串口调试助手Delphi版1.0\2ccc.com.nfo (746, 2005-04-21)
cport-3.0\examples\串口调试助手Delphi版1.0\ComAssistant.cfg (434, 2005-12-19)
cport-3.0\examples\串口调试助手Delphi版1.0\ComAssistant.dpr (196, 2005-12-19)
cport-3.0\examples\串口调试助手Delphi版1.0\ComAssistant.exe (590848, 2005-12-20)
cport-3.0\examples\串口调试助手Delphi版1.0\ComAssistant.res (876, 2005-12-19)
cport-3.0\examples\串口调试助手Delphi版1.0\help.htm (5906, 2005-12-20)
cport-3.0\examples\串口调试助手Delphi版1.0\main.ddp (51, 2005-12-20)
cport-3.0\examples\串口调试助手Delphi版1.0\main.dfm (31684, 2005-12-20)
cport-3.0\examples\串口调试助手Delphi版1.0\main.pas (9768, 2005-12-19)
cport-3.0\examples\串口调试助手Delphi版1.0 (0, 2006-04-28)
cport-3.0\examples (0, 2006-04-28)
cport-3.0\examples.zip (28837, 2003-05-19)
cport-3.0\help (0, 2006-04-28)
... ...

+------------------------------------------+ | ComPort Library version 2.*** | | for Delphi 3, 4, 5, 6, 7 | | and C++ Builder 3, 4, 5, 6 | | | | by Dejan Crnila 19***-2002 | | maintained by Lars Dybdahl 2003 | | C++ Builder support by Paul Doland | +------------------------------------------+ Contents 1. Author information 2. Support 3. Files in archive 4. Examples 5. Package names 6. Installing ComPort Library 7. C++ Builder notes 8. Installing help file 9. Known problems and issues 1. Author information --------------------------------------------------------------------------------- Name: Dejan Crnila E-mail: dejancrn@yahoo.com Homepage: http://www2.arnes.si/~sopecrni Home address: Dolenja vas 111, 3312 Prebold, SLOVENIA Year of birth: 1978 Occupation: Student of computer science at University of Ljubljana Note: ComPort Library has been in development more than two years with a lot of work put in it. I have been thinking about making it shareware, but i have decided to distribute it as freeware with sources, because i want to contribute as much as possible to the Delphi community on the internet. I have tried several programming languages, but not a single one comes close to Delphi's simplicity and power. However, i ask all ComPort Library users to send me at least a postcard if they find the component useful. That will give me a motivation for further development of the component. I hope that this is not too much to ask from you. Current maintainer ------------------ Name: Lars B. Dybdahl E-mail: Lars@dybdahl.dk Homepage: http://dybdahl.dk/lars/ Home address: Stokrosevej 6, DK-3310 Oelsted Year of birth: 1971 Occupation: Freelance programmer Note: Dejan has allowed me to continue his work 2. Support -------------------------------------------------------------------------------- If you have any questions, suggestions, opinion or any other messages, please visit ComPort Library Forum at http://www.delphi.com/comportlib/messages Authors and other ComPort Library users check this forum often and you'll get answer as quick as possible. 3. Files in archive -------------------------------------------------------------------------------- ReadMe.Txt - this file Sources.zip - ComPort Library sources Help.zip - Delphi context-sensitive help file for library Examples.zip - Example projects for Delphi C++Examples.zip - Example projects for C++ Builder 4. Examples -------------------------------------------------------------------------------- ComExample.dpr, ComExampleCB*.bpr - shows some basic send-recieve features ModTest.dpr - modem test console application MiniTerm.dpr, MiniTermCB*.bpr - simple terminal application CPortMonitor.pas - TCPortMonitor component for monitoring incoming and outgoing data. This example shows how to link to TCustomComPort component. Author: Roelof Y. Ensing (e-mail: ensingroel@msn.com). BarCodeScanner.pas - TBarCodeScanner component. An example of simple TCustomComPort descendant. 5. Package names -------------------------------------------------------------------------------- Design-Time Source Run-Time Source ---------------- --------------- Delphi 3 DsgnCPort3.dpk CPortLib3.dpk Delphi 4 DsgnCPort4.dpk CPortLib4.dpk Delphi 5 DsgnCPort5.dpk CPortLib5.dpk Delphi 6 DsgnCPort6.dpk CPortLib6.dpk Delphi 7 DsgnCPort7.dpk CPortLib7.dpk C++ Builder 3 DsgnCPortCB3.bpk CPortLibCB3.bpk C++ Builder 4 DsgnCPortCB4.bpk CPortLibCB4.bpk C++ Builder 5 DsgnCPortCB5.bpk CPortLibCB5.bpk C++ Builder 6 DsgnCPortCB6.bpk CPortLibCB6.bpk Design-Time library Run-Time library ---------------- ---------------- Delphi 3 DsgnCPort3.dpl CPortLib3.dpl Delphi 4 DsgnCPort4.bpl CPortLib4.bpl Delphi 5 DsgnCPort5.bpl CPortLib5.bpl C++ Builder 3 DsgnCPortCB3.bpl CPortLibCB3.bpl (also .lib and .bpi) C++ Builder 4 DsgnCPortCB4.bpl CPortLibCB4.bpl (also .lib and .bpi) C++ Builder 5 DsgnCPortCB5.bpl CPortLibCB5.bpl (also .lib and .bpi) C++ Builder 6 DsgnCPortCB6.bpl CPortLibCB6.bpl (also .lib and .bpi) 6. Installation -------------------------------------------------------------------------------- Remove all previously installed files of ComPort Library (TComPort component). Create a new folder under Delphi directory and extract Sources zip file into new folder. Set Library Path to new ComPort folder (Tools-Environment Options-Library-Library Path). For Delphi 3, 4, 5, 6, 7 & C++ Builder 4, 5, 6: (C++ Builder users also need to read the C++ Builder notes) Use "File/Open" menu item in Delphi/C++ Builder IDE to open ComPort run-time package source file (see above). Click "Compile" button in Package window to compile the library. Now move run-time package library file or files (see above) from ComPort folder to a folder that is accessible through the search PATH (e.g. WinNT\System32). Now you have to install design-time package. Use File/Open menu item to open design-time package source file (see above). Click "Compile" button in Package window to compile the package and "Install" button to register ComPort into the IDE. ComPort components appear in "CPortLib" page of component pallete. If it complains that it can't install it because it can't find a library, you probably did not put the run-time package in the search path. You might not get this error until the next time you try to start Delphi/C++ Builder. Note: Do not save packages under Delphi/C++ Builder IDE. For C++ Builder 3 (C++ Builder users also need to read the C++ Builder notes) C++ Builder 3 does not have a "Package window" like the other products. So, installation is slightly different. Use "File/Open" menu item in Delphi/C++ Builder IDE to open ComPort run-time package source file (see above). Compile the package from the project menu or Ctrl-F9. Now move run-time package library files (see above) from ComPort folder to a folder that is accessible through the search PATH (e.g. WinNT\System32). Now you have to install design-time package. Use File/Open menu item to open design-time package source file (see above). Compile the package from the project menu or Ctrl-F9. To install the package into the IDE, go to the Component menu, "Install Packages" option. Click the Add button. Browse to the design-time library and select it. If it complains that it can't install it because it can't find a library, you probably did not put the run-time package in the search path as described above. Note about Delphi 2: Note: Delphi 2 is no longer suported, however, with some minor changes, it should compile under Delphi 2 as well. Use "Component/Install" menu item to add "CPortReg.pas" unit to the component library. This unit registers ComPort components on "CPortLib" page of component pallete. 7. C++ Builder Notes ------------------------------------------------------------------------------ The .hpp file C++ Builder creates for cport.pas will have a bug in it. The first time you compile a project, you will get one or two duplicate definitions within the EComPort exception class. It seems to be safe to delete or comment out the duplicates. Also, the CPortCtl.HPP may have a bug in it. If you get an error about the following being ambiguous; typedef TBitmap TLedBitmap; Change it to: typedef Graphics::TBitmap TLedBitmap; If someone knows how to fix these more cleanly, please post what you find to the CPort Forum so that we can incorporate your findings in future revisions. 8. Installing help file ------------------------------------------------------------------------------ In Delphi/C++ Builder, go to the Help menu, customize item. You should be presented with a tabbed notebook, "Contents" tab selected. Click the + (Add Files) button. Browse to the CPort directory. Select CPort.toc. Click on the "Index" tab. Click Add Files. Select CPort.hlp. Click on the "Link" tab. Click Add Files. Select CPort.hlp. Select File Menu/Save Project Item. Exit program. Note that Borland's OpenHelp utility does not prompt you if you close the program and forget to save your changes, so you must remember to do so yourself. 9. Known problems and issues ----------------------------------------------------------------------------- 1.) OnRxBuf event handler problem in Delphi IDE If user double clicks on OnRxBuf event in Delphi IDE, message pops up saying: "Property and Method ComPort1RxBuf are not compatible". This is a Delphi IDE bug, since it can't handle untyped parameters like Buffer parameter of OnRxBuf event. Solution: Application has to assign OnRxBuf handler manually in code. 2.) Two serial ports sharing the same IRQ address Some users of Windows 95/*** have reported that application can't have two TComPort components open simultaneouslly if serial ports share the same IRQ address. This usually COM1/COM3 and COM2/COM4. Solution: Not known yet.

近期下载者

相关文件


收藏者