Interfacing with Comm32 Component
- From: "Andy Massey" <someone@xxxxxxxxxxxxx>
- Date: Thu, 17 Jan 2008 21:49:52 -0500
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.
Roughly what I want to do is: Memo1.Lines.Append (Buffer); , but
Buffer won't automatically cast into a string.
I haven't programmed in Delphi for 10 years, and I wasn't very good then.
I've done my best to describe my question above, but I am unsure about the
terms that I've used. If something doesn't make sense, I've probably used
the wrong term to describe it.
Can somebody tell me how to get my Comm data from the Buffer variable to a
string variable?
Thanks,
Andy Massey
.
- Follow-Ups:
- Re: Interfacing with Comm32 Component
- From: Jamie
- Re: Interfacing with Comm32 Component
- From: Rudy Velthuis
- Re: Interfacing with Comm32 Component
- Prev by Date: Re: Delphi 5 server app as a dll without forms
- Next by Date: Re: Interfacing with Comm32 Component
- Previous by thread: Excel Automation: How to Status Excel? (Is it Open?, Closed?)
- Next by thread: Re: Interfacing with Comm32 Component
- Index(es):
Relevant Pages
|