Re: Interfacing with Comm32 Component
- From: "Rudy Velthuis" <newsgroups@xxxxxxxxxxxx>
- Date: Fri, 18 Jan 2008 02:52:02 +0000 (UTC)
Andy Massey wrote:
Hello all,
I am trying to use a Comm32 Component authored by David Wann in 1996
(http://www.programmersheaven.com/download/14247/download.aspx). I
am using WinXP and have installed Delphi 2.0 in Win95 compatibility
mode. I have installed the component in the Delphi component library
and am now trying to interface to it.
My user program interfaces to the component using a Comm32 component
event named "OnReceiveData".
The procedure in my user program is:
procedure TForm1.Comm321ReceiveData(Buffer: Pointer; BufferLength:
Word);
I can't figure out how to get the characters in the Buffer (type of
Pointer) into a string that I can use in a memo control.
Try:
Memo1.Lines.Append(PChar(Buffer));
--
Rudy Velthuis http://rvelthuis.de
"The pen is mightier than the sword, and considerably easier to
write with." -- Marty Feldman.
.
- Follow-Ups:
- Re: Interfacing with Comm32 Component
- From: Rob Kennedy
- Re: Interfacing with Comm32 Component
- From: Andy Massey
- Re: Interfacing with Comm32 Component
- References:
- Interfacing with Comm32 Component
- From: Andy Massey
- Interfacing with Comm32 Component
- Prev by Date: Interfacing with Comm32 Component
- Next by Date: Re: Interfacing with Comm32 Component
- Previous by thread: Interfacing with Comm32 Component
- Next by thread: Re: Interfacing with Comm32 Component
- Index(es):