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

Tony tony at maro.net
Fri Sep 26 18:49:22 EDT 2003


Michael Van Canneyt wrote:

>On Fri, 26 Sep 2003, Tony wrote:
>  
>
>>But this line generates an illegal type conversion:
>>
>>  p := PChar(FComments);
>>
>>Any ideas?
>>    
>>
>
>Is FComments an ansistring or a shortstring, IOW, did you use {$H+} ?
>
>Michael.
>

You guys are so smart!  ;-)  (in other words I'm stoopid sometimes.)  
Thanks!  I knew that {$H+} and {$mode delphi} should be there but in 
porting the unit never added them.

Thanks,

-Tony






More information about the Lazarus mailing list