Article View: borland.public.cppbuilder.nativeapi
Article #13071Re: Content missing when using clipboard API calls
From: Bob Gonder
Date: Sat, 25 Oct 2003 15:14
Date: Sat, 25 Oct 2003 15:14
12 lines
1410 bytes
1410 bytes
Kris wrote: >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). > >Sure, I can really easily solve this by making the buffer just 1 byte >longer but I really would like to know why this is happening ? > SetClipboardData(CF_TEXT,TEXT_hglbCopy); CF_TEXT ends on a NULL. You aren't providing a NULL.
Technical Details
Message-ID:
<qb4lpvki17hq4maletbua9t8cm4ol4qijc@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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 08:39:15 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Content missing when using clipboard API calls Date: Sat, 25 Oct 2003 08:14:37 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <qb4lpvki17hq4maletbua9t8cm4ol4qijc@4ax.com> References: <cq9kpv03v7gookvn5ao482qv0bl7352eva@4ax.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.39 X-Trace: newsgroups.borland.com 1067094873 67.31.164.39 (25 Oct 2003 08:14:33 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail