> if so can you then just pass PChar(S) to your function rather
> than using an
> intermediary
> variable...
Yeah that's right, just use FindWindow (PChar(SomeString) ...
> Question though (as I've not tested it in delphi)... Doesn't
> an empty string
> simply mean
> that the string reference is nil...
> EG
> var
> S :String;
> begin
> S := ' '; // S is not nil but a reference a string
> containing a space
> S := Trim(S); // Does S now point to a string of length 0 or does it
> contain nil?
> end;
S after the Trim becomes a Nil reference because Trim returns a Nil
reference and the original space string has been deallocated (reference
count = 0).
Regards,
Dennis.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz