🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting binary data from the clipboard

#637
From: Asger Joergensen
Date: Tue, 12 Feb 2008 00:01
22 lines
1715 bytes
Hi Remy
 
 Remy Lebeau (TeamB) says:
> 
> "Asger Joergensen" <junk@Asger-P.dk> wrote in message 
> news:MPG.2217a0eb16f624a2989a58@newsgroups.borland.com...
> 
> > if so this should work:
> >
> > char Buf[200];
> > TClipboard().GetTextBuf(Buf, 200);
> 
> TClipboard is a VCL-based class.  It cannot be instantiated on the stack 
> like that.  You need to use the global Clipboard() function instead, ie:

No doubt that You are right as usual, but 'cannot' might be a little 
strong in this case, since the code I posted compiles and run just 
fine in my BCB5.

Kind regards
Asger
Technical Details
Message-ID: <MPG.221b003de228cd89989a60@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!news.osn.de!diablo2.news.osn.de!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47aceda1$1@newsgroups.borland.com> <MPG.221719ed59086717989a55@newsgroups.borland.com> <47ad5ffd@newsgroups.borland.com> <MPG.2217a0eb16f624a2989a58@newsgroups.borland.com> <47b098b3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c5ac8670671c8a0e
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Asger Joergensen <junk@Asger-P.dk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Getting binary data from the clipboard
Date: Tue, 12 Feb 2008 01:01:22 +0100
Message-ID: <MPG.221b003de228cd89989a60@newsgroups.borland.com>
References: <47aceda1$1@newsgroups.borland.com> <MPG.221719ed59086717989a55@newsgroups.borland.com> <47ad5ffd@newsgroups.borland.com> <MPG.2217a0eb16f624a2989a58@newsgroups.borland.com> <47b098b3$1@newsgroups.borland.com>
Organization: Asger-P
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: 83.73.220.89
X-Trace: newsgroups.borland.com 1202774603 83.73.220.89 (11 Feb 2008 16:03:23 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!news.osn.de!diablo2.news.osn.de!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail