Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Available COM Ports on the PC - TMS Async32 suite


This question is answered.


Permlink Replies: 4 - Last Post: Jun 28, 2014 10:14 AM Last Post By: Mohammad Alsharif
Mohammad Alsharif

Posts: 36
Registered: 6/29/14
Available COM Ports on the PC - TMS Async32 suite  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 20, 2014 1:06 PM
Hi All,

I am using the TMS Async32 suite to communicate using the serial port on C++ XE5,
what I need is a method (or a way) to find all available COM Ports on my PC.

Any ideas?
Bruno Fierens

Posts: 27
Registered: 10/10/99
Re: Available COM Ports on the PC - TMS Async32 suite  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 22, 2014 11:45 PM   in response to: Mohammad Alsharif in response to: Mohammad Alsharif
The method VaComm.GetCOMPortNames() fills a TStrings list with names of COM
port names on the machine.

--
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
Mohammad Alsharif

Posts: 36
Registered: 6/29/14
Re: Available COM Ports on the PC - TMS Async32 suite  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 23, 2014 12:40 AM   in response to: Bruno Fierens in response to: Bruno Fierens
{Bruno Fierens wrote:
The method VaComm.GetCOMPortNames() fills a TStrings list with names of COM
port names on the machine.

Thanks for your answer, but I am afraid that there is still something wrong. This is how I am using the above method:
ComboBox->Items->VaComm.GetCOMPortNames() ;

and this gives me this error:
[bcc32 Error] OILPAS_MainFormUnit.cpp(9142): E2316 'VaComm' is not a member of 'TStrings'

Still I get the same error even when I use "TVaComm" instead of "VaComm".

Any ideas?
Bruno Fierens

Posts: 27
Registered: 10/10/99
Re: Available COM Ports on the PC - TMS Async32 suite
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 23, 2014 4:53 AM   in response to: Mohammad Alsharif in response to: Mohammad Alsharif
The parameter of GetCOMPortNames() is a TStrings object, i.e. you can pass a
TStringList as parameter and it will be filled:

Example:
VaComm->GetCOMPortNames(listbox.Items)

--
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
Mohammad Alsharif

Posts: 36
Registered: 6/29/14
Re: Available COM Ports on the PC - TMS Async32 suite  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 28, 2014 10:14 AM   in response to: Bruno Fierens in response to: Bruno Fierens
I am using the TMS Async package, in the TVaComm component there is a property called UpdateDCB.
Could you please tell me the exact description of this property and what is it for?

Thanks in advance,
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02