[lazarus] Why is this not working? (PChar conversion)

Tony tony at maro.net
Fri Sep 26 03:16:49 EDT 2003


Working on converting a component from Delphi 5...


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?

-- 
Tony Maro
Systems Consultant
The Maro Group
(256) 337-5759
http://www.maro.net/







More information about the Lazarus mailing list