[fpc-pascal] Help making code unicode capable

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Sat Nov 10 15:44:54 CET 2007


Thanks, I arrived at this:

var
  FilterBuffer: WideString;
...

      FilterBuffer := Utf8Decode(Filter);
      lpStrFilter := GetMem(Length(FilterBuffer) * 2 + 2);
      Move(FilterBuffer, lpStrFilter, Length(FilterBuffer) * 2 + 2);

But now it crashes when loading the dialog =/

any ideas?

thanks,
-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list