🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4686

Re: # Send Data to COM

#4686
From: Michel Leunen
Date: Fri, 02 Dec 2005 17:51
27 lines
2300 bytes
Pedram wrote:

> The biggest problem is I know how to write port programms by old functions
> like inp() outp() inport() outport() using
> #include "bios.h" !!! but this header file also is forgotten and ingnored in
> BCB.

The problem is elsewhere. In a Win32 environment, you're not allowed to 
access (read Windows doesn't allow you not BCB) I/O directly. You must 
use the functions given by the API or write your own device driver.

 > I'm completely new to using WriteFile() for sending data to COM ports, so
 > please excuse me for my rudness :">
 > If I say I need a more source I mean needing a (Hello Port!)  App. :-)

You must not have look hardly enough to the links I gave you. 
Particularly the Harold Howe's class which is pretty basic and well 
documented (comments in the code itself). And there is a demo app as well.

Michel
-- 
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID: <4390897e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!diablo.voicenet.com!38.119.97.78.MISMATCH!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <438b18ee@newsgroups.borland.com> <k3tmo1lqum0cd2kc3ia6a2tr5gcnd8oea9@4ax.com> <438ec31c@newsgroups.borland.com> <438f2127$1@newsgroups.borland.com> <43903be3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eed65ef52aa9d642
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 02 Dec 2005 18:51:43 +0100
From: Michel Leunen <nospam@noreply.please>
Organization: www.leunen.com
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: fr-be, en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: # Send Data to COM
References: <438b18ee@newsgroups.borland.com> <k3tmo1lqum0cd2kc3ia6a2tr5gcnd8oea9@4ax.com> <438ec31c@newsgroups.borland.com> <438f2127$1@newsgroups.borland.com> <43903be3@newsgroups.borland.com>
In-Reply-To: <43903be3@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.242.164.191
Message-ID: <4390897e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1133545854 81.242.164.191 (2 Dec 2005 09:50:54 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!diablo.voicenet.com!38.119.97.78.MISMATCH!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail