Memorystream to widestring
- From: Costa <costakaramalis@xxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 11:14:37 -0400
Hi all,
how can I copy the contents of a memorystream into a widestring?
I can do it for a string, but widestring doesnt work.
procedure TForm1.Button1Click(Sender: TObject);
var
SourceString: widestring;
MemoryStream: TMemoryStream;
begin
.....
MemoryStream.Position := 0;
SetLength(SourceString, MemoryStream.Size);
MemoryStream.ReadBuffer(Pointer(SourceString)^,MemoryStream.Size);
Caption := SourceString;
....
Can someone help me out? I m stuck.
Thank you.
.
- Follow-Ups:
- Re: Memorystream to widestring
- From: Toon Krijthe
- Re: Memorystream to widestring
- Prev by Date: Re: How to delete history,cookies,internet files ?
- Next by Date: Re: Memorystream to widestring
- Previous by thread: How to delete history,cookies,internet files ?
- Next by thread: Re: Memorystream to widestring
- Index(es):