Solved

Delphi 3 "communications port interface"

Posted on 1997-07-20
6
202 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
  • 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 50 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 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