🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13068

Re: Content missing when using clipboard API calls

#13068
From: Remy Lebeau (TeamB)
Date: Sat, 25 Oct 2003 08:28
21 lines
1654 bytes
"Kris" <myEmail@email.com> wrote in message
news:cq9kpv03v7gookvn5ao482qv0bl7352eva@4ax.com...

> When executing the code below and putting the data contained in
> TEXT_ClipboardData (which is "PLAIN TEXT SAMPLE") I will only get
> "PLAIN TEXT SAMPL" (i.e. the last char is missing).

Since you are using the VCL anyway, you could just use the
TClipboard::AsString property instead:

    #include <clipbrd.h>

    Clipboard()->AsString = "PLAIN TEXT SAMPLE";

If that still exhibits the same problem, then the fault is in the receiving
application that is pasting the text, not in the code that is copying the
text to the clipboard (where exactly are you pasting the text, anyway?).


Gambit
Technical Details
Message-ID: <3f9a339b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <cq9kpv03v7gookvn5ao482qv0bl7352eva@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8c9761db6f386d91
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-25 01:39:00 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <cq9kpv03v7gookvn5ao482qv0bl7352eva@4ax.com>
Subject: Re: Content missing when using clipboard API calls
Date: Sat, 25 Oct 2003 01:28:43 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f9a339b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067070363 67.22.137.75 (25 Oct 2003 01:26:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail