|
楼主 |
发表于 2008-10-29 10:14:53
|
显示全部楼层
LS你可以要看一下这个!
//可能需要安装的文件,根据下面安装方法选择
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
Delphi 2005 DsgnCPort9.dpk CPortLib9.dpk (also .bdsproj)
Delphi 2006 DsgnCPort10.dpk CPortLib10.dpk (also .bdsproj)
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
Delphi 6 DsgnCPort6.bpl CPortLib6.bpl
Delphi 7 DsgnCPort7.bpl CPortLib7.bpl
Delphi 2005 DsgnCPort9.bpl CPortLib9.bpl
Delphi 2006 DsgnCPort9.bpl CPortLib9.bpl (also .lib and .bpi for C++)
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)
//安装方法
For Delphi 3, 4, 5, 6, 7, 2005 & 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. |
|