Sign in Join
Wiki copytemporary

PChar/es

Deutsch · English · Español · Français · Русский

Un PChar es un Data type y un Pointer a una cadena terminada en null. La aplicación más importante de PChar es para su interacción con librerías de sistema tales como dll's.

Messagebox:

pascal
var 
  s: String;
begin
  s := 'Test';
  Application.MessageBox( PChar(s)),'Título', MB_OK );
end;

Declaration:

pascal
var 
  p: PChar;

Valid assignments:

pascal
   p := 'Esto es una cadena terminada en null.';
   p := IntToStr(45);

Argumentos no válidos:

pascal
   p := 45;

El valor integer no se ha caracterizado como PChar que es lo que se esperaba.

Ver también


From the Free Pascal wiki, page "PChar/es", as it stood on 2021-09-03 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Edited on wiki.freepascal.org by 5 people, 2017–2021

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
Jma sp
Mathias (minor)
Useroflazarus
TrevFixed syntax highlighting; removed categories included in template (minor)
Kai Burghardtrename of template Pchar to PChar Special: Diff/146650 (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.