On Sat, 10 Nov 2007 15:44:54 +0100
"Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote:

> 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?


       Move(FilterBuffer[0], lpStrFilter^, Length(FilterBuffer) * 2 +
2);


Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to