> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mike Mueller
> Sent: Friday, 21 January 2000 17:52
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Invalid pointer operation
>
>
> The line PTitle := PChar(WTitle) does not copy the string data from WTitle
> to PTitle, it ensures that WTitle is null-terminated and then assigned
> @(WTitle[1]) to PTitle.
Umm yes, funny now that I think about it I remember making the same mistake
learning to program in C :)
i.e.
char *str1, *str2;
[...]
str1 = str2;
which of course should be
strcpy(str1,str2);
============================================
Patrick Dunford, Christchurch, NZ
EnzedRailWeb Sites
http://patrick.dunford.com/enzedrailweb/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz