Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Serial Port Component?



Permlink Replies: 37 - Last Post: Aug 3, 2015 6:19 PM Last Post By: Lisnevskiy Andrey
Bissett Daniel

Posts: 6
Registered: 11/28/07
Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 18, 2010 5:21 PM
Hi All,

I have been using BCB6 and TurboPower Async Pro for almost ten years now. The majority of my programs require support for serial ports. Recently, I decided to upgrade to C++ Builder 2010. Much to my dismay, I then discovered that Async Pro does not work with CB 2010. My CB 2010 now sits collecting dust.

There seem to be several issues at play here. One is Unicode. Another is the that all the current supporters of Async Pro are Delphi guys. Another problem is that CB 2010, unlike BCB 6, does not compile Delphi packages. I don't understand all the details but it seems clear that Async Pro is a dead end for C++ Builder programmers.

I would like to know if there are other packages out there that are known to work with CB 2010, preferably ones that don't cost hundreds of dollars.

Also, does anyone know why, after all these years, Borland/Emvbarcadero has never provided serial support?

Thanks for any help.

Daniel Bissett
Rafael Ontivero

Posts: 2
Registered: 11/22/06
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2010 1:15 AM   in response to: Bissett Daniel in response to: Bissett Daniel
On Fri, 18 Jun 2010 17:21:45 -0700, Bissett Daniel <> wrote:

Hi All,

I have been using BCB6 and TurboPower Async Pro for almost ten years now. The majority of my programs require support for serial ports. Recently, I decided to upgrade to C++ Builder 2010. Much to my dismay, I then discovered that Async Pro does not work with CB 2010. My CB 2010 now sits collecting dust.

There seem to be several issues at play here. One is Unicode. Another is the that all the current supporters of Async Pro are Delphi guys. Another problem is that CB 2010, unlike BCB 6, does not compile Delphi packages. I don't understand all the details but it seems clear that Async Pro is a dead end for C++ Builder programmers.

I would like to know if there are other packages out there that are known to work with CB 2010, preferably ones that don't cost hundreds of dollars.

Also, does anyone know why, after all these years, Borland/Emvbarcadero has never provided serial support?

Thanks for any help.

Daniel Bissett

That's a question that much other people does. The only people that
uses CB instead of Visual C++ or GNU in the business sector I work are
those related to hardware stuff that needs communicate with a PC, for
example utilities to save configuration in boards and/or vending
machines with a PC into them and so.

All people has solved their way. Some had done a simple component.
Other uses a class that encapsulates CreateFile/WriteFile/ReadFile
stuff, other uses old MSCOMM OCX control, but all does it as a
temporary solution until "borland" will add a serial port component...
Bissett Daniel

Posts: 6
Registered: 11/28/07
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2010 10:57 AM   in response to: Rafael Ontivero in response to: Rafael Ontivero
Rafael Ontivero wrote:

That's a question that much other people does. The only people that
uses CB instead of Visual C++ or GNU in the business sector I work are
those related to hardware stuff that needs communicate with a PC, for
example utilities to save configuration in boards and/or vending
machines with a PC into them and so.


I work in broadcasting and television and spend my time getting different pieces of equipment to talk to each other. Believe me, serial communication is NOT dead.

A public example of my work can be found here: http://code.google.com/p/hcp4sam/

Rafael, thanks for your support..
Rafael Ontivero

Posts: 2
Registered: 11/22/06
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 20, 2010 2:12 AM   in response to: Bissett Daniel in response to: Bissett Daniel
Of course serial port is not dead!

At least 80% of our products have a RS232 TTL based protocol (appart
from more traditional based in parallel IO lines -not parallel port).

And of course, USB is serial, SATA is serial, HDMI is serial...

On Sat, 19 Jun 2010 10:57:12 -0700, Bissett Daniel <> wrote:

Rafael Ontivero wrote:

That's a question that much other people does. The only people that
uses CB instead of Visual C++ or GNU in the business sector I work are
those related to hardware stuff that needs communicate with a PC, for
example utilities to save configuration in boards and/or vending
machines with a PC into them and so.


I work in broadcasting and television and spend my time getting different pieces of equipment to talk to each other. Believe me, serial communication is NOT dead.

A public example of my work can be found here: http://code.google.com/p/hcp4sam/

Rafael, thanks for your support..
ÿþM
Dennis Jones

Posts: 53
Registered: 1/25/98
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2010 8:10 AM   in response to: Bissett Daniel in response to: Bissett Daniel
<Bissett Daniel> wrote in message news:253223 at forums dot embarcadero dot com...
Hi All,

I have been using BCB6 and TurboPower Async Pro for almost ten years now.
The majority of my programs require support for serial ports. Recently, I
decided to upgrade to C++ Builder 2010. Much to my dismay, I then
discovered that Async Pro does not work with CB 2010. My CB 2010 now sits
collecting dust.

There seem to be several issues at play here. One is Unicode. Another is
the that all the current supporters of Async Pro are Delphi guys. Another
problem is that CB 2010, unlike BCB 6, does not compile Delphi packages.

That may be true, but only if you do not have RAD Studio, and only from
within the IDE. You're not at a dead-end. CB2010 comes with a Delphi
compiler, so it should be able to compile Delphi packages from the command
line. I do not have CB2010, so I cannot confirm that 100%, but it seems
likely (every previous version of C++Builder has included a Delphi compiler
that could compile Delphi packages).

However, even if you cannot compile Delphi packages, you can compile
C++Builder packages, and since C++Builder packages can contain Delphi source
code, if yiou had to, you could create a C++Builder package that contains
the AsyncPro source code and build it that way.

Also, does anyone know why, after all these years, Borland/Emvbarcadero
has never provided serial support?

Probably because it is not trivial and because companies like TurboPower and
Greenleaf had already done a good job of it, so why re-invent the wheel?
However, now that AsyncPro is in the public domain, it could easily become
part of normal Delphi/C++Builder releases (like they are doing with Boost).

- Dennis
Bissett Daniel

Posts: 6
Registered: 11/28/07
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2010 11:31 AM   in response to: Dennis Jones in response to: Dennis Jones
Dennis Jones wrote:

That may be true, but only if you do not have RAD Studio, and only from
within the IDE.

What I did was to download the demo version of RAD Studio and install Async Pro. It compiled correctly and the components loaded into the Delphi IDE. However, I could do nothing to get the components loaded into the C++ Builder IDE. While the issue of CB2010 being able to compile Delphi code is an obstacle, it is not the only problem.

I really don't want to be thought of as someone who throws stones at open source developers. They do a great deal of work and they do it without compensation. The Async Pro developers should be applauded for their efforts. A great number of Delphi users are dependent on and happy with their efforts. In spite of this, it is clear that their resources are too limited to support the C++ side.

Dennis Jones wrote:

Probably because it is not trivial and because companies like TurboPower and
Greenleaf had already done a good job of it, so why re-invent the wheel?
However, now that AsyncPro is in the public domain, it could easily become
part of normal Delphi/C++Builder releases (like they are doing with Boost).

If Embarcadero were to add the component to the releases, it would imply at least some level of commitment to assisting the open source developers. The packages would at least have to be kept up to date to work with with the current release. The current problem is that this has failed to happen on the C++ side. I think this would be great for the users but Embarcadero would have to decide if they have the time (spoken money) to make this commitment.

My original question still stands; What can I use today?

Daniel

Edited by: Bissett Daniel on Jun 19, 2010 12:32 PM
Moritz Beutel

Posts: 62
Registered: 1/19/07
Re: Serial Port Component? [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2010 2:35 PM   in response to: Bissett Daniel in response to: Bissett Daniel
Hello,

Bissett Daniel wrote:

What I did was to download the demo version of RAD Studio and install
Async Pro. It compiled correctly and the components loaded into the
Delphi IDE. However, I could do nothing to get the components loaded
into the C++ Builder IDE. While the issue of CB2010 being able to
compile Delphi code is an obstacle, it is not the only problem.

did you try to set the "Linker output" option for the Delphi compiler
to "Generate all C++Builder files (including package libs)"?

If you change that setting after the package was installed once, you'll
probably need to clear the package cache (a long-standing bug):

http://zachsaw.blogspot.com/2008/10/delphi-packages-not-appearing-in-c.html

--
Moritz

"Hey, it compiles! Ship it!"
Malcolm Smith

Posts: 29
Registered: 7/27/99
Re: Serial Port Component? [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2010 3:44 AM   in response to: Bissett Daniel in response to: Bissett Daniel
I use the TMS Async32 suite. Very reliable.

--
Malcolm Smith
MJ Freelancing
http://www.mjfreelancing.com

Associate Editor
C++Builder Developers Journal
http://www.bcbjournal.com

<Bissett Daniel> wrote in message news:253352 at forums dot embarcadero dot com...
Dennis Jones wrote:

My original question still stands; What can I use today?

Daniel
Andrew Thompson

Posts: 1
Registered: 11/19/00
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 2, 2010 9:45 AM   in response to: Bissett Daniel in response to: Bissett Daniel
Bissett Daniel wrote:
Dennis Jones wrote:

That may be true, but only if you do not have RAD Studio, and only from
within the IDE.

What I did was to download the demo version of RAD Studio and install Async Pro. It compiled correctly and the components loaded into the Delphi IDE. However, I could do nothing to get the components loaded into the C++ Builder IDE. While the issue of CB2010 being able to compile Delphi code is an obstacle, it is not the only problem.

I really don't want to be thought of as someone who throws stones at open source developers. They do a great deal of work and they do it without compensation. The Async Pro developers should be applauded for their efforts. A great number of Delphi users are dependent on and happy with their efforts. In spite of this, it is clear that their resources are too limited to support the C++ side.

Dennis Jones wrote:

Probably because it is not trivial and because companies like TurboPower and
Greenleaf had already done a good job of it, so why re-invent the wheel?
However, now that AsyncPro is in the public domain, it could easily become
part of normal Delphi/C++Builder releases (like they are doing with Boost).

If Embarcadero were to add the component to the releases, it would imply at least some level of commitment to assisting the open source developers. The packages would at least have to be kept up to date to work with with the current release. The current problem is that this has failed to happen on the C++ side. I think this would be great for the users but Embarcadero would have to decide if they have the time (spoken money) to make this commitment.

My original question still stands; What can I use today?

Daniel

Edited by: Bissett Daniel on Jun 19, 2010 12:32 PM

Did you ever resolve this? think in similar position (BCB6 and async pro for god knows how long), and utterly annoyed to say the least that it's not in CB2010. Think i'm going back to my bcb6.....

Erik Salaj

Posts: 1
Registered: 3/16/00
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 4, 2010 8:17 PM   in response to: Bissett Daniel in response to: Bissett Daniel
I have been using BCB6 and TurboPower Async Pro for almost ten years now. The majority of my programs require support for serial ports. Recently, I decided to upgrade to C++ Builder 2010. Much to my dismay, I then discovered that Async Pro does not work with CB 2010. My CB 2010 now sits collecting dust.

There seem to be several issues at play here. One is Unicode. Another is the that all the current supporters of Async Pro are Delphi guys. Another problem is that CB 2010, unlike BCB 6, does not compile Delphi packages. I don't understand all the details but it seems clear that Async Pro is a dead end for C++ Builder programmers.

I would like to know if there are other packages out there that are known to work with CB 2010, preferably ones that don't cost hundreds of dollars.

Also, does anyone know why, after all these years, Borland/Emvbarcadero has never provided serial support?

ComPort component supports CB 2010

http://www.winsoft.sk/comport.htm

erik salaj
Harry Sieber

Posts: 1
Registered: 10/3/10
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 7, 2010 12:02 PM   in response to: Erik Salaj in response to: Erik Salaj
Erik Salaj wrote:
I have been using BCB6 and TurboPower Async Pro for almost ten years now. The majority of my programs require support for serial ports. Recently, I decided to upgrade to C++ Builder 2010. Much to my dismay, I then discovered that Async Pro does not work with CB 2010. My CB 2010 now sits collecting dust.

There seem to be several issues at play here. One is Unicode. Another is the that all the current supporters of Async Pro are Delphi guys. Another problem is that CB 2010, unlike BCB 6, does not compile Delphi packages. I don't understand all the details but it seems clear that Async Pro is a dead end for C++ Builder programmers.

I would like to know if there are other packages out there that are known to work with CB 2010, preferably ones that don't cost hundreds of dollars.

Also, does anyone know why, after all these years, Borland/Emvbarcadero has never provided serial support?

ComPort component supports CB 2010

http://www.winsoft.sk/comport.htm

erik salaj

I have the same problem as the OP. I am trying to install AsyncPro, which is now apparently available only in Delphi source format. I am using a trial version of RAD Studio XE. I can't figure how to start the Delphi compiler (or even if there is one as part of the program, despite the fact that the product description says there is). It's possible that I did the installation wrong but I don't recall any compiler choices there. If I try to compile with the IDE I get a 'missing Delphi.personality' message. I attempted the command line approach but the trial version doesn't seem to support command line compiling. I am completely at a loss. I will buy the Studio package if I can figure how to get this package installed- it's mandatory since my applications are serial/usb intensive.

I am trying to upgrade from C++ Builder5 and AsyncPro 3, which has worked well in the past but is getting dated, plus when I try to use the 'build with run time packages' option I am now getting access violations for some reason. Any help would be most appreciated.

I have also tried the ComPort utility from Winsoft as described in the previous post. All I really need is a com port object, no fax, TCP/IP, etc, so this tool would suffice in place of Async Pro. However, after installation, the ComPort item shows up checked in the 'install packages'->design packages window, but no trace of the ComPort item where it's supposed to be in the 'System' palette area of the tool box. I am probably doing something wrong, the IDE has changed a lot since C++Builder 5. I should also note that the first time I installed Comport, it apparently installed the tool in the earlier C++Builder 5 program (successfully I think, it showed up in the tool box). I then uninstalled version 5 and comport, re-installed comport, but still no comport tool in the toolbox in XE. Very frustrating, I've been stalled for days and any help would be a huge relief.

Thanks,
Harry
Oscar Bedoya

Posts: 1
Registered: 10/28/10
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 1, 2010 2:12 PM   in response to: Harry Sieber in response to: Harry Sieber
Good Day !

Anyone could to solve support for Builder XE?

i am using COMPORT for builder C++ 6, and my old project couldn't had installed....:(

I hope your help.
best regards,
Oscar
Simon Quin

Posts: 1
Registered: 4/13/07
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 16, 2011 3:14 AM   in response to: Oscar Bedoya in response to: Oscar Bedoya
Gents,

I too found myself in the position of going on using CBuilder 6 and the free Turbopower serial port component for much longer than I expected. I had a couple of warnings about this cosy state of affairs. The first being that after getting XE I could not load the Turbopower component. I also could not load the Turbopower component into CBuilder 6 when installed on Windows 7 (my company is shortly to move to this OS). So I thought I should come up with a solution. I created a class in a thread which allows the creation of multiple COM ports in an application. There is a project here:

http://www.thequins.org/downloads.html

Which gives an example of a simple app with 2 COM ports. You will need to change the code for the COM ports on your PC. Once you have done this you can send a message by pressing the button. Just connect pins 2 & 3 on your serial port and you can stream data. Full source code is provided.

I hope you find this of some assistance.

Regards....Simon
Mohammad Alsharif

Posts: 36
Registered: 6/29/14
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2014 12:26 PM   in response to: Simon Quin in response to: Simon Quin
Simon Quin wrote:
http://www.thequins.org/downloads.html
Which gives an example of a simple app with 2 COM ports. You will need to change the code for the COM ports on your PC. Once you have done this you can send a message by pressing the button. Just connect pins 2 & 3 on your serial port and you can stream data. Full source code is provided.
I hope you find this of some assistance.

Hi Simon,
Thanks for sharing your work. I am using C++ XE5, and when running your project I get this error:

[bcc32 Error] EthernetThreadtestMain.cpp(8): E2209 Unable to open include file 'EnetThread.h'

any idea?
Erik Salaj

Posts: 144
Registered: 12/23/11
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 9, 2013 2:39 PM   in response to: Harry Sieber in response to: Harry Sieber
I have also tried the ComPort utility from Winsoft as described in the previous post. All I really need is a com port object, no fax, TCP/IP, etc, so this tool would suffice in place of Async Pro. However, after installation, the ComPort item shows up checked in the 'install packages'->design packages window, but no trace of the ComPort item where it's supposed to be in the 'System' palette area of the tool box. I am probably doing something wrong, the IDE has changed a lot since C++Builder 5. I should al
so note that the first time I installed Comport, it apparently installed the tool in the earlier C++Builder 5 program (successfully I think, it showed up in the tool box). I then uninstalled version 5 and comport, re-installed comport, but still no comport tool in the toolbox in XE. Very frustrating, I've been stalled for days and any help would be a huge relief.

1. check, whether Winsoft ComPort Component package is enabled
(menu Component/Install packages), try to switch off another
ComPort components

2. ComPort component could be placed on another component palette

3. check, whether comportp.bpl package was created. Compilation
uses dcc32 command line compiler when installing component.
Some C++ Builder editions may not contain this compiler, in this
case compile the package manually - directly in C++ Builder IDE.

Erik Salaj, WINSOFT
Lisnevskiy Andrey

Posts: 4
Registered: 6/26/11
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 23, 2015 8:58 PM   in response to: Erik Salaj in response to: Erik Salaj
Erik Salaj wrote:
I have also tried the ComPort utility from Winsoft as described in the previous post. All I really need is a com port object, no fax, TCP/IP, etc, so this tool would suffice in place of Async Pro. However, after installation, the ComPort item shows up checked in the 'install packages'->design packages window, but no trace of the ComPort item where it's supposed to be in the 'System' palette area of the tool box. I am probably doing something wrong, the IDE has changed a lot since C++Builder 5. I should al
so note that the first time I installed Comport, it apparently installed the tool in the earlier C++Builder 5 program (successfully I think, it showed up in the tool box). I then uninstalled version 5 and comport, re-installed comport, but still no comport tool in the toolbox in XE. Very frustrating, I've been stalled for days and any help would be a huge relief.

1. check, whether Winsoft ComPort Component package is enabled
(menu Component/Install packages), try to switch off another
ComPort components

2. ComPort component could be placed on another component palette

3. check, whether comportp.bpl package was created. Compilation
uses dcc32 command line compiler when installing component.
Some C++ Builder editions may not contain this compiler, in this
case compile the package manually - directly in C++ Builder IDE.

Erik Salaj, WINSOFT

1. Done. But but still no comport tool in the toolbox in XE3 C++Builder
2. How can I find it? Please explain more.
3. Done. comportp.bpl was created in Delphi XE3. Comport tool appears in the toolbox in Delphi XE3. But when I do the same (with same comportp.bpl ) in C++ Builder XE3 - comport tool do not apear in toolbox. Without any errors. The ComPort item shows up checked in the 'install packages'->design packages window.

Edited by: Lisnevskiy Andrey on Jul 23, 2015 9:10 PM
Erik Salaj

Posts: 144
Registered: 12/23/11
Re: Serial Port Component? [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 24, 2015 10:19 AM   in response to: Lisnevskiy Andrey in response to: Lisnevskiy Andrey
1. Done. But but still no comport tool in the toolbox in XE3 C++Builder
2. How can I find it? Please explain more.
3. Done. comportp.bpl was created in Delphi XE3. Comport tool appears in the toolbox in Delphi XE3. But when I do the same (with same comportp.bpl ) in C++ Builder XE3 - comport tool do not apear in toolbox. Without any errors. The ComPort item shows up checked in the 'install packages'->design packages window.

try to open demo example supplied with the ComPort component
and check whether it works and whether the ComPort is showed
on the form. Demo example is located in folder

C:\Program Files (x86)\Winsoft\ComPort\Examples\CBuilder

You can try also check the C++ Builder XE3 registry
settings using RegEdit, maybe ComPort is disabled there.

Erik Salaj, Winsoft XE
Lisnevskiy Andrey

Posts: 4
Registered: 6/26/11
Re: Serial Port Component? [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 29, 2015 6:52 PM   in response to: Erik Salaj in response to: Erik Salaj
Erik Salaj wrote:
1. Done. But but still no comport tool in the toolbox in XE3 C++Builder
2. How can I find it? Please explain more.
3. Done. comportp.bpl was created in Delphi XE3. Comport tool appears in the toolbox in Delphi XE3. But when I do the same (with same comportp.bpl ) in C++ Builder XE3 - comport tool do not apear in toolbox. Without any errors. The ComPort item shows up checked in the 'install packages'->design packages window.

try to open demo example supplied with the ComPort component
and check whether it works and whether the ComPort is showed
on the form. Demo example is located in folder

C:\Program Files (x86)\Winsoft\ComPort\Examples\CBuilder

You can try also check the C++ Builder XE3 registry
settings using RegEdit, maybe ComPort is disabled there.

Erik Salaj, Winsoft XE

The component is showed in Demo example.
But when I open the example, I have a lot of errors. For example:
Error reading FormMain.FormFactor.Devices: Invalid property value
Error reading FormMain.DesignermasterStyle: Property does not exists
Error reading ComboBoxDeviceName.Size.Width: Property Size.Width does not exists
etc.
I press IgnoreAll. Then, I can see ComPort component on the form. Off course DemoProject, can not be run.

I tried to copy ComPort element from Demo Project to My Project. Component appears on the form, but when I tried to run it - I got an error [ilink32 Error] Fatal: Unable to open file 'WINSOFT.FIREMONKEY.COMPORT.OBJ'

You can try also check the C++ Builder XE3 registry
settings using RegEdit, maybe ComPort is disabled there.
I think ComPort is enabled, because AsyncPro (vcl) works correct

Edited by: Lisnevskiy Andrey on Jul 29, 2015 9:32 PM
Erik Salaj

Posts: 144
Registered: 12/23/11
Re: Serial Port Component? [Edit] [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 30, 2015 9:21 AM   in response to: Lisnevskiy Andrey in response to: Lisnevskiy Andrey
The component is showed in Demo example.
But when I open the example, I have a lot of errors. For example:
Error reading FormMain.FormFactor.Devices: Invalid property value
Error reading FormMain.DesignermasterStyle: Property does not exists
Error reading ComboBoxDeviceName.Size.Width: Property Size.Width does not exists
etc.
I press IgnoreAll. Then, I can see ComPort component on the form. Off course DemoProject, can not be run.

demo example was prepared in some newer C++ Builder version,
you can ignore these errors.

I tried to copy ComPort element from Demo Project to My Project. Component appears on the form, but when I tried to run it - I got an error [ilink32 Error] Fatal: Unable to open file 'WINSOFT.FIREMONKEY.COMPORT.OBJ'

you need to add Winsoft.FireMonkey.ComPortP.lib file, located in folder
C:\Program Files\Winsoft\ComPort for FireMonkey\DelphiXE3-Win32, to your
project. Also add this folder to include path.

Erik Salaj, Winsoft XE
Lisnevskiy Andrey

Posts: 4
Registered: 6/26/11
Re: Serial Port Component? [Edit] [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 30, 2015 5:12 PM   in response to: Erik Salaj in response to: Erik Salaj
Erik Salaj wrote:
you need to add Winsoft.FireMonkey.ComPortP.lib file, located in folder
C:\Program Files\Winsoft\ComPort for FireMonkey\DelphiXE3-Win32, to your
project. Also add this folder to include path.

Erik Salaj, Winsoft XE

This folder is already added to include path.
But I can't find file Winsoft.FireMonkey.ComPortP.lib in this folder. Also, I can't find it anywhere on my PC.
If you please, send me all needed files for C++ Builder XE3 to waterlis at yandex dot ru.

Edited by: Lisnevskiy Andrey on Jul 30, 2015 5:43 PM

Erik Salaj

Posts: 144
Registered: 12/23/11
Re: Serial Port Component? [Edit] [Edit] [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 31, 2015 1:21 PM   in response to: Lisnevskiy Andrey in response to: Lisnevskiy Andrey
This folder is already added to include path.
But I can't find file Winsoft.FireMonkey.ComPortP.lib in this folder. Also, I can't find it anywhere on my PC.
If you please, send me all needed files for C++ Builder XE3 to waterlis at yandex dot ru.

ok, sent

Erik Salaj, Winsoft XE
Lisnevskiy Andrey

Posts: 4
Registered: 6/26/11
Re: Serial Port Component? [Edit] [Edit] [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 3, 2015 6:19 PM   in response to: Erik Salaj in response to: Erik Salaj
Erik Salaj wrote:
This folder is already added to include path.
But I can't find file Winsoft.FireMonkey.ComPortP.lib in this folder. Also, I can't find it anywhere on my PC.
If you please, send me all needed files for C++ Builder XE3 to waterlis at yandex dot ru.

ok, sent

Erik Salaj, Winsoft XE

Thank you very much! Now it works correct!
Jason Goff

Posts: 8
Registered: 5/9/08
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 16, 2011 7:17 PM   in response to: Bissett Daniel in response to: Bissett Daniel
I have been using BCB6 and TurboPower Async Pro for almost ten years now. The majority of my programs require support for serial ports. Recently, I decided to upgrade to C++ Builder 2010. Much to my dismay, I then discovered that Async Pro does not work with CB 2010. My CB 2010 now sits collecting dust.

You are entitled to download CB2007 which the best version for if you want to use the old definition of String/AnsiString.
Borja Serrano

Posts: 172
Registered: 1/10/13
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 8, 2013 6:46 AM   in response to: Bissett Daniel in response to: Bissett Daniel
I get the free Comport Library working in C++ Builder using Moritz Beutel's suggestion.

Bissett Daniel wrote:
Hi All,

I have been using BCB6 and TurboPower Async Pro for almost ten years now. The majority of my programs require support for serial ports. Recently, I decided to upgrade to C++ Builder 2010. Much to my dismay, I then discovered that Async Pro does not work with CB 2010. My CB 2010 now sits collecting dust.

There seem to be several issues at play here. One is Unicode. Another is the that all the current supporters of Async Pro are Delphi guys. Another problem is that CB 2010, unlike BCB 6, does not compile Delphi packages. I don't understand all the details but it seems clear that Async Pro is a dead end for C++ Builder programmers.

I would like to know if there are other packages out there that are known to work with CB 2010, preferably ones that don't cost hundreds of dollars.

Also, does anyone know why, after all these years, Borland/Emvbarcadero has never provided serial support?

Thanks for any help.

Daniel Bissett
Lena Ilicheva

Posts: 83
Registered: 9/22/06
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 10, 2013 11:17 PM   in response to: Borja Serrano in response to: Borja Serrano
Emvbarcadero has never provided serial support?

http://dn.embarcadero.com/article/41301
Mike Knoblock

Posts: 24
Registered: 11/5/06
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 10, 2014 3:36 PM   in response to: Lena Ilicheva in response to: Lena Ilicheva
Lena Ilicheva wrote:
Emvbarcadero has never provided serial support?

http://dn.embarcadero.com/article/41301

You may have found this document through Google searching as I did, but did you actually work through the process? The install in this doc does not work for C++ - the delphi compiler complains about missing files that are not in the zip package. There is no one to ask for help.

I commiserate completely with everyone in this chain - I went from BCB5 with AsyncPro to Builder 2010 with no serial support. I went on building serial-based apps with BCB5, which is only delaying the inevitable problems.

I will repeat the OP's plea, years later: has ANYONE successfully ported TP AsyncPro to Builder 2010 or later for C++? I am about to wrapper the serial stuff from BCB5 into a DLL that I can call from Builder 2010 out of desperation.
Alain Bastien

Posts: 153
Registered: 11/12/01
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2014 11:54 PM   in response to: Mike Knoblock in response to: Mike Knoblock
Mike Knoblock

Posts: 24
Registered: 11/5/06
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 17, 2014 8:07 AM   in response to: Alain Bastien in response to: Alain Bastien
If anyone is interested, I took the AsyncPro serial component in my old Builder 5 IDE and wrappered its basic functionality into a DLL, which you can call from any Borland development environment. I have used it with C++ Builder successfully enough to deploy an application for a customer - this is single-threaded and uses only one comport.

I can share the source code for this with anyone who is interested - just reply to this chain.
Reef Morse

Posts: 1
Registered: 1/21/98
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 11, 2014 8:07 PM   in response to: Mike Knoblock in response to: Mike Knoblock
Mike Knoblock wrote:
If anyone is interested, I took the AsyncPro serial component in my old Builder 5 IDE and wrappered its basic functionality into a DLL, which you can call from any Borland development environment. I have used it with C++ Builder successfully enough to deploy an application for a customer - this is single-threaded and uses only one comport.

I can share the source code for this with anyone who is interested - just reply to this chain.

OK. I'm replying. :-). Thanks for this!!!!! I've tried Comport and Deepsoft stuff to no avail. Sigh..
Mike Knoblock

Posts: 24
Registered: 11/5/06
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 12, 2014 5:03 AM   in response to: Reef Morse in response to: Reef Morse
Reef Morse wrote:
OK. I'm replying. :-). Thanks for this!!!!! I've tried Comport and Deepsoft stuff to no avail. Sigh..

Posted DLL and sample code to the attachments thread... I can send full source code if you have Builder 5 and want to tinker with it...
Mohammad Alsharif

Posts: 36
Registered: 6/29/14
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2014 4:22 AM   in response to: Mike Knoblock in response to: Mike Knoblock
Mike wrote:
I can share the source code for this with anyone who is interested - just reply to this chain.

I am working on C++ XE5 and I need to use the serial port, does your code work with it?

Thanks in Advance
Mike Knoblock

Posts: 24
Registered: 11/5/06
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2014 5:25 AM   in response to: Mohammad Alsharif in response to: Mohammad Alsharif
Mohammad Alsharif wrote:
Mike wrote:
I can share the source code for this with anyone who is interested - just reply to this chain.

I am working on C++ XE5 and I need to use the serial port, does your code work with it?

Thanks in Advance

I have used this in C++ Builder 2010 in RAD Studio successfully; it's a standard Borland DLL so you should have no problems - just use the sample code in the attachment.
Mohammad Alsharif

Posts: 36
Registered: 6/29/14
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2014 9:16 AM   in response to: Mike Knoblock in response to: Mike Knoblock
Mike wrote:
I have used this in C++ Builder 2010 in RAD Studio successfully; it's a standard Borland DLL so you should have no problems - just use the sample code in the attachment.

Thanks for your answer Mike. Just two things please, since I am new to these forums, where is the "attachment thread" from which I can download the code file?
Also, could you please tell me briefly how to use it? just to download it or what?

Your answers are highly appreciated

Edited by: Mohammad Alsharif on Jun 15, 2014 9:24 AM

Edited by: Mohammad Alsharif on Jun 15, 2014 9:25 AM
Mike Knoblock

Posts: 24
Registered: 11/5/06
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2014 7:30 PM   in response to: Mohammad Alsharif in response to: Mohammad Alsharif
Mohammad Alsharif wrote:
Mike wrote:
I have used this in C++ Builder 2010 in RAD Studio successfully; it's a standard Borland DLL so you should have no problems - just use the sample code in the attachment.

Thanks for your answer Mike. Just two things please, since I am new to these forums, where is the "attachment thread" from which I can download the code file?

https://forums.embarcadero.com/thread.jspa?threadID=105843&tstart=0


Also, could you please tell me briefly how to use it? just to download it or what?

Just place this DLL in the folder with your exe file. In your project, use LoadLibraryEx to load the DLL, then call OpenComport. Copy all this code from the sample CPP file "com_dll_test_main.cpp".

Your answers are highly appreciated

Edited by: Mohammad Alsharif on Jun 15, 2014 9:24 AM

Edited by: Mohammad Alsharif on Jun 15, 2014 9:25 AM
Mohammad Alsharif

Posts: 36
Registered: 6/29/14
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 20, 2014 12:56 PM   in response to: Mike Knoblock in response to: Mike Knoblock
Hi All,

I am using XE5 with the TMS Async32 suite that contains a serial port connection.
In my application, I need to show all available COM Ports in a ComboBox from which I can choose one, is there a such a method that finds available COM ports?

Thanks in advance
Charlie Kupelian

Posts: 1
Registered: 11/25/14
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 8, 2014 12:11 PM   in response to: Mohammad Alsharif in response to: Mohammad Alsharif
Mohammad Alsharif wrote:
Hi All,

I am using XE5 with the TMS Async32 suite that contains a serial port connection.
In my application, I need to show all available COM Ports in a ComboBox from which I can choose one, is there a such a method that finds available COM ports?

Thanks in advance

This works for me - It gets installed COM ports from the registry and puts them into a radiogroup.
Hope it helps.

// gets installed com ports from the registry - found this code in a news
// group. Modified it to fill in a specific radiogroup.

TRegistry *pReg = new TRegistry( KEY_READ );
TStringList *pListNames = new TStringList;

pReg->RootKey = HKEY_LOCAL_MACHINE;
pReg->OpenKeyReadOnly("HARDWARE
DEVICEMAP
SERIALCOMM");
pReg->GetValueNames(pListNames);

for ( int i = 0; i < pListNames->Count; i++ )
{
RadioGroup5->Items->Add(pReg->ReadString( pListNames->Strings[i] ));
}

delete pListNames;
delete pReg;


You will need this, too:
#include <registry.hpp>

Edited by: Charlie Kupelian on Nov 8, 2014 12:12 PM

Mohammad Alsharif

Posts: 36
Registered: 6/29/14
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2014 9:37 AM   in response to: Borja Serrano in response to: Borja Serrano
Borja Serrano wrote:
I get the free Comport Library working in C++ Builder using Moritz Beutel's suggestion.

Could you explain me how you did it please?

Thanks in advance.
Bruno Fierens

Posts: 27
Registered: 10/10/99
Re: Serial Port Component?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 22, 2014 11:48 PM   in response to: Bissett Daniel in response to: Bissett Daniel
You might have a look at TMS Async.
http://www.tmssoftware.com/site/async32.asp

--
Kind regards,
Bruno Fierens
TMS software team
Web: http://www.tmssoftware.com
Support, FAQ & Manuals: http://www.tmssoftware.com/site/support.asp
Stay in touch: http://www.tmssoftware.com/site/stayintouch.asp
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02