hello coders,


Whenever I put some text on clipboard programatically n try to paste that on notepad. It gives error -25 i.e. Unexpected end of file

On reading clipboard data it gives "HIxxx" where xxx is garbage chars.
How to solve this ?

// put data on clipboard ---
CClipboard* cb;
cb=CClipboard::NewForWritingLC(fsSession);

RStoreWriteStream stream;
TStreamId stid = stream.CreateLC(cb->Store());

// put text on clipboard
_LIT(K, "Hi");
stream.WriteL(K);

stream.CommitL();
(cb->StreamDictionary()).AssignL(KClipboardUidTypePlainText,stid);
CleanupStack::PopAndDestroy(); // stream
cb->CommitL();
CleanupStack::PopAndDestroy(); // cb


saur