Download ComPort Library for free. TComPort by Dejan Crnila. Delphi/C++ Builder serial communications components.
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.
On Fri, 18 Jun 2010 17:21:45 -0700, Bissett Daniel wrote: Hi AllI 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. Wrote in message news:[email protected]. Hi AllI 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 CBuilder has included a Delphi compiler that could compile Delphi packages).
However, even if you cannot compile Delphi packages, you can compile CBuilder packages, and since CBuilder packages can contain Delphi source code, if yiou had to, you could create a CBuilder 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/CBuilder releases (like they are doing with Boost). 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 CBuilder 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): - Moritz 'Hey, it compiles!
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 erik salaj. 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: 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.
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 CBuilder 5. I should al so note that the first time I installed Comport, it apparently installed the tool in the earlier CBuilder 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.
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.
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. Simon Quin wrote: 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? But but still no comport tool in the toolbox in XE3 CBuilder 2. How can I find it? Please explain more.
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. 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.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |