Re: Interfacing with Comm32 Component



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.
.