Sign in Join
Wiki copytemporary

PChar/es: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: PChar/es

OldNewLine
1+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.
2+
3+Messagebox:
4+
5+``` pascal
6+var
7+ s: String;
8+begin
9+ s := 'Test';
10+ Application.MessageBox( PChar(s)),'Título', MB_OK );
11+end;
12+```
13+
14+Declaration:
15+
16+``` pascal
17+var
18+ p: PChar;
19+```
20+
21+Valid assignments:
22+
23+``` pascal
24+ p := 'Esto es una cadena terminada en null.';
25+ p := IntToStr(45);
26+```
27+
28+Argumentos no válidos:
29+
30+``` pascal
31+ p := 45;
32+```
33+
34+El valor integer no se ha caracterizado como PChar que es lo que se esperaba.
35+
36+## Ver también
37+
38+- [[Character and string types]]
39+
40+---
41+*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](/wiki-contact).*

Back to history