🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Clipbored and Unicode

#1955
From: Jos�
Date: Mon, 14 May 2007 20:14
31 lines
2120 bytes
On Mon, 14 May 2007 10:09:36 -0700, "Remy Lebeau \(TeamB\)"
<no.spam@no.spam.com> wrote in borland.public.cppbuilder.nativeapi:

>Unicode has its own separate Clipboard format
>registered - CF_UNICODETEXT.  You need to use that instead of CF_TEXT,

>> To write into the clipboard, I found that SetAsHandle (the obvious
>> opposite of GetAsHandle) is unusable.
>
>It is very usable.  You are just not using it correctly.

Well, I agree that it is too easy to shout 'rubbish' if you don't
understand how something must be used. And that happens easily if the
documentation is unclear, or if you are as stupid as I so you don't
understand the documentation.

It is my understanding that G/SetTextBuf have no alternative for
anything but ASCII, while G/SetAsHandle are more versatile. But of
course they are harder to use, and a programming example is very
helpful.

And you taught me a lot more. I didn't know things like WideString and
c_bstr() yet, although I am familiar with String and c_str();

>    ULONG ulSize = (sizeof(wchar_t) * (Length(ws) + 1));

Well, ws.Length() was a bit better, but apart from that your
programming examples were just the thing. Big hugs for you!

-- 
Jos�
Technical Details
Message-ID: <95gh431pv4pahduf64qus02b5b84bpeja5@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <qdde43trid2dep05rjl9pu2k2ohufnguf1@4ax.com> <46489979$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eee29c0be9200ce9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: Jos� <jose@127.0.0.1>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Clipbored and Unicode
Date: Mon, 14 May 2007 22:14:08 +0200
Message-ID: <95gh431pv4pahduf64qus02b5b84bpeja5@4ax.com>
References: <qdde43trid2dep05rjl9pu2k2ohufnguf1@4ax.com> <46489979$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 4.2/32.1117
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 82.75.32.109
X-Trace: newsgroups.borland.com 1179173652 82.75.32.109 (14 May 2007 13:14:12 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail