Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Aug : pointer to string type
| Subject: | pointer to string type |
| Posted by: | "keyser" (keyser_so..@usa.com) |
| Date: | 25 Aug 2005 10:54:12 |
I need to use postmessage between threads and have been passing
records with no problem:
< on sender:>
p:=new(recordtype)
postmessage( yada, yada, yada, integer(p) );
<messagehandler>
p:=recordType(Message.LParam);
...
dispose(p);
Now I want to do the same with the built-in string type. Do I
need to make a new type:
type pstring=^string;
and use that, or if I just use a string will I be able to pass
it via postmessage? (and if so, will it be freed at the
completion of the message handler?)
Thanks