Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Delphi 3 "communications port interface"

Posted on 1997-07-20
6
Medium Priority
?
218 Views
Last Modified: 2010-04-04
Simple question.

Does delphi3 have an improved interface to the com ports over delphi2?

Delphi2 currently forces you to jump into assembly to access the com port or to use a third party package.

If it does have an improved interface is it easy to use and where can I find more info on it short of upgrading?  I've looked on Borland's web site and found nothing pertaining to this and I don't want to upgrade without knowing.

Matthew
0
Comment
Question by:matthewh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1339384
I don't know What have Delphi3, but you don't need jump to assembly to access the com ports. If You need i can mail to You  example of using com ports in Delphi2.
0
 
LVL 1

Accepted Solution

by:
lowlevel earned 200 total points
ID: 1339385
wrong. delphi2 uses the win32 api. delphi3 uses the win32 api.
so nothing has changed :)

the only thing that changed is the pascal language (a bit), and the VCL. but the VCL is only built upon the win32 API.

now, to answer your question:
mickeysoft has gone the way unix went a long time ago: Both files and comm-ports are handled as a stream of data.

The api-call createFile is used to open a file for reading/writing. Look in the help to see how to use it, but I would recommend buying a 3rd-party component right now. If you didn't know about this api-call, you probably haven't done this before. comm-port stuff is a drag to debug. Buy yourself a good component. www.activex.com is a good point to start.

0
 

Author Comment

by:matthewh
ID: 1339386
lowlevel

Thanks.

I was confused by an article in "Nuts & Volts" May 1997 page 10.

"Delphi 2.0, for creating 32-bit programs, has no port functions builtin, but you can access ports using in-line assembly code in your programs."

I am sure there right also, but I am trained more in computer interfacing then programming and it seems alittle confusing to me.

I just wanted to add this and I'll give you a grade of excellent in a couple days.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:matthewh
ID: 1339387
I really wish I had asked for some simple examples now...


0
 
LVL 1

Expert Comment

by:lowlevel
ID: 1339388
matthewh:
I can get you a good freeware delphi2 component that I used...
and code to show you how to use it, too...
how do I get your email addr?
0
 

Author Comment

by:matthewh
ID: 1339389
I would really appreciate it.

My email address is:

matthewh@parod.com

I am trying to put together a software package that will interface with a radio transmitter.  I need to output a digital data stream.

I have a degree Electronics/Computer Technology and have had extensive training in assembly language and some qbasic.  Trying to get anywhere with Windows 95 has been a bit trying.

Any info you have would be appreciated.

thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question