Saturday, October 22, 2011

ComPort Library version 3.10


ComPort Library version 3.10 |
| for Delphi 3, 4, 5, 6, 7, 2005, 2006 |
| and C++ Builder 3, 4, 5, 6 |
| |
| by Dejan Crnila 1998-2002 |
| maintained by Lars Dybdahl and Paul Doland

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. Add to the Library Path the new
ComPort folder (Tools-Environment Options-Library-Library Path).

For Delphi 2006:

Use the instructions below for all other Delphi
versions. But, note that Delphi 2006 supports both Delphi and
C++ Builder. I recommend installing CPort while running Delphi 2006
in the "all personalities" mode of Delphi, rather than in the Delphi
only personality. That helps make sure CPort gets installed dual-mode,
with both Delphi and C++ Builder support. Note that for some reason,
I find the .LIB files get stored into the CPort directory instead of
the $BDSPROJECTS/BPL directory. So, after you install CPort, double
check to make sure the .LIB files are in the right spot.

Finally, the .HPP files also get stored in the CPort directory. Either
move them to a folder already in the C++ source path, or add the CPort
directory to the C++ source path.

Otherwise, follow the directions below, and also read the C++ Builder
notes:

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.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More