|
Some clients are receiving the above message in my
app.
A google search finds the exact same
message/address in other applications but doesn't offer a solution. It
could be related to this function. Can anyone see anything wrong with
this.
function LCase(Ch: Char): Char;
begin Result := Char(CharLower(Pointer(Ch))); end; CharLower accepts an ascii character
or an address of a string (pChar). The Delphi compiler
only recognises a pChar for the parameter and doesn't accept a character, so
Pointer(Ch) gets around this. It works fine here during testing, but it's
something I modified recently so I thought I had better check it out with
you experts.
I'm doing this to lowercase portions of a string,
and CharLower takes into account the windows locale for foreign
languages.
Thanks,
Ross.
|
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
