Hello Jason,
Does anyone know how to convert array [0..21] of char to PAnsiChar?
This interesting question is not really related to ICS. I suggest you post
this kind of question to the general mailing list delphi on the same
elists.org server.
Thanks for your understanding.
btw: One answer might be:
var
a : array [0..4] of Char = ('f', 'ê', 't', 'e', #0); // Adjust the size
to your needs
s : AnsiString;
p : PAnsiChar;
procedure TForm1.Button1Click(Sender: TObject);
begin
s := AnsiString(a);
p := PAnsiChar(s);
end;
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be