I'm currently using a Microsoft RichTextbox control v6.0 in my CVI 7.1 app. It's name is RICHTX32. I'm running into a problem cutting and pasting using CVI's default clipboard commands.
Here's the code I use for a simple copy-selection-to-clipboard...
char *temp;
RichTextLib_IRichTextGetSelRTF (m_rtf_handle, NULL, &temp);
ClipboardPutText (temp);
CA_FreeMemory(temp);
The problem is that "ClipboardPutText (temp)" puts the entire selection AND all the metadata onto the clipboard as text.
Here's exactly what gets copied when I try to copy
**FAILED**{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Lucida Console;}}
{\colortbl ;\red255\green0\blue0;}
\uc1\pard\cf1\b\f0\fs18 **FAILED**}
What I'd like it to do is to copy the RTF string and paste into Word as RTF rather than a bunch of plain-text metadata.