🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting binary data from the clipboard

#640
From: Remy Lebeau (TeamB)
Date: Tue, 12 Feb 2008 00:29
24 lines
1996 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:47b0e780$1@newsgroups.borland.com...

> It is a bug in the compiler.  It should be issuing the following error 
> instead:
>
>    "E2459 VCL style classes must be constructed using operator new"

If you try your code in BCB 6, the linker will report "unresolved external" 
errors:

    char Buf[200];
    TClipboard().GetTextBuf(Buf, 200);

    [Linker Error] Unresolved external 'Clipbrd::TClipboard::' referenced 
from ...
    [Linker Error] Unresolved external '__fastcall 
Clipbrd::TClipboard::GetTextBuf(char *, int)' referenced from ...

If you change it to a variable, the compiler E2459 error will occur instead.


Gambit 
Technical Details
Message-ID: <47b0e84d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!213.239.142.3.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!194.25.134.126.MISMATCH!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> <MPG.221b003de228cd89989a60@newsgroups.borland.com> <47b0e780$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
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> <MPG.221b003de228cd89989a60@newsgroups.borland.com> <47b0e780$1@newsgroups.borland.com>
Subject: Re: Getting binary data from the clipboard
Date: Mon, 11 Feb 2008 16:29:21 -0800
Lines: 26
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <47b0e84d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1202776141 207.178.157.90 (11 Feb 2008 16:29:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!213.239.142.3.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail