mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
19 lines
380 B
C++
19 lines
380 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
Progress pi("%d");
|
|
for(;;) {
|
|
if(pi.StepCanceled())
|
|
break;
|
|
WString txt = AsString(Random()).ToWString();
|
|
ClearClipboard();
|
|
AppendClipboardText(txt.ToString());
|
|
WriteClipboardUnicodeText(txt);
|
|
WString txt2 = ReadClipboardUnicodeText();
|
|
DDUMP(txt2);
|
|
ASSERT(txt == txt2);
|
|
}
|
|
}
|