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:

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);
   s := AnsiString(a);
   p := PAnsiChar(s);

The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)

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

Reply via email to