[lazarus] Why is this not working? (PChar conversion)
Shin The Gin
shin at shin.homelinux.net
Fri Sep 26 04:16:54 EDT 2003
Am Freitag, 26. September 2003 09:14 schrieb Tony:
> Given this:
>
> FComments: String;
> p : PChar;
>
> This line compiles fine:
>
> p := PChar(ExtractFilename(FFileSource));
>
> But this line generates an illegal type conversion:
>
> p := PChar(FComments);
>
> Any ideas?
Has FComments been initialized? Just having a declaration doesn't give you a
true string, does it?
Shin - A.k.a. Thomas Braun
More information about the Lazarus
mailing list