Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Copy TPtrC or TBuf to clipboard

0 replies · 1,896 views · Started 27 May 2005

I'm trying to write an OPX (extension for OPL) that allows OPL programmers to access the Symbian clipboard.

What I'm basically trying to do is to copy a string (stored in a TPtrC or TBuf<256>😉 to the Clipboard so it can be pasted in other applications and be able to paste text from the clipboard and return it to the OPL application in a TBuf<256>.

I'm trying to use the CClipboard, but I'm kinda stuck there. I need two questions answered before I can continue with this:
1. What UID do I need to use
2. What is the format of plain text on the Clipboard?
I cannot find this in the documentation or on the internet.

Any help or pointers in the right direction would be greatly appreciated.