473,769 Members | 2,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anyone know the Unicode equivalent of Clipboard.SetTe xt?

I need to copy some Unicode text to the Clipboard, but it ain't
happening. :/

If there's no equivalent in VB, what's the API call?
--
auric "underscore " "underscore " "at" hotmail "dot" com
*****
The truth depends on, or is only arrived at by, a legitimate deduction from all the facts which are truly material. Whispering tongues can poison truth.
-- Coleridge
Jul 17 '05 #1
8 6313
On Tue, 06 Jan 2004 03:03:56 -0700, Auric__
<no*********@em ail.address> wrote:
I need to copy some Unicode text to the Clipboard, but it ain't
happening. :/

If there's no equivalent in VB, what's the API call?


The API is SetClipboardDat a

CF_UNICODETEXT only for NT 2K XP

See:

http://tinyurl.com/38ove
Jul 17 '05 #2
"...And the next sign of the Apocalypse will be..."
*****
On Tue, 6 Jan 2004 11:23:38 +0000 (UTC), J French wrote:
On Tue, 06 Jan 2004 03:03:56 -0700, Auric__
<no*********@e mail.address> wrote:
I need to copy some Unicode text to the Clipboard, but it ain't
happening. :/

If there's no equivalent in VB, what's the API call?


The API is SetClipboardDat a

CF_UNICODETE XT only for NT 2K XP

See:

http://tinyurl.com/38ove


I'm planning on distributing my app to users that might be running 98 or
Me (or even 95) - are they just unable to copy and paste Unicode? Am I
going to have to implement my own pseudo-clipboard? Hmm... what about
rich text?
--
auric "underscore " "underscore " "at" hotmail "dot" com
*****
Old is needing a fire permit for your birthday cake.
Jul 17 '05 #3
On Thu, 08 Jan 2004 12:51:37 -0700, Auric__
<no*********@em ail.address> wrote:

<snip>

I'm planning on distributing my app to users that might be running 98 or
Me (or even 95) - are they just unable to copy and paste Unicode? Am I
going to have to implement my own pseudo-clipboard? Hmm... what about
rich text?


Rich Text is not Unicode

- are you really sure that you want Unicode ?
Jul 17 '05 #4
"...And the next sign of the Apocalypse will be..."
*****
On Fri, 9 Jan 2004 11:30:51 +0000 (UTC), J French wrote:
On Thu, 08 Jan 2004 12:51:37 -0700, Auric__
<no*********@e mail.address> wrote:

I'm planning on distributing my app to users that might be running 98 or
Me (or even 95) - are they just unable to copy and paste Unicode? Am I
going to have to implement my own pseudo-clipboard? Hmm... what about
rich text?


Rich Text is not Unicode

- are you really sure that you want Unicode ?


Well, it's Japanese characters on non-Japanese-specific systems. I
suppose I could go with different encoding methods, such as JIS, but
Unicode is already supported by Windows.

I know that RTF <> Unicode, but I was thinking about the fact that
Unicode characters in RTF are stored as escaped ASCII text (like
\u35615?).
--
auric "underscore " "underscore " "at" hotmail "dot" com
*****
Why did the chicken cross the road?
SAEED AL SAHAF - Iraqi Head of Information - The chicken did not cross the road. This is a complete fabrication. We do not even have a chicken.
Jul 17 '05 #5
On Fri, 09 Jan 2004 09:18:57 -0700, Auric__
<no*********@em ail.address> wrote:
"...And the next sign of the Apocalypse will be..."
*****
On Fri, 9 Jan 2004 11:30:51 +0000 (UTC), J French wrote:
On Thu, 08 Jan 2004 12:51:37 -0700, Auric__
<no*********@ email.address> wrote:

I'm planning on distributing my app to users that might be running 98 or
Me (or even 95) - are they just unable to copy and paste Unicode? Am I
going to have to implement my own pseudo-clipboard? Hmm... what about
rich text?


Rich Text is not Unicode

- are you really sure that you want Unicode ?


Well, it's Japanese characters on non-Japanese-specific systems. I
suppose I could go with different encoding methods, such as JIS, but
Unicode is already supported by Windows.

I know that RTF <> Unicode, but I was thinking about the fact that
Unicode characters in RTF are stored as escaped ASCII text (like
\u35615?).


Ah, I see what you are up to

- you might have a point about using RTF

One thing about Unicode
- it is not really supported by Windows itself in 95, 98 and ME
- it is supported by Applications but that is not really the same
thing
- I wonder what happens when you use normal cut and paste with a
Unicode Japanese font ...
Jul 17 '05 #6
"...And the next sign of the Apocalypse will be..."
*****
On Fri, 9 Jan 2004 19:50:15 +0000 (UTC), J French wrote:
On Fri, 09 Jan 2004 09:18:57 -0700, Auric__
<no*********@e mail.address> wrote:

Well, it's Japanese characters on non-Japanese-specific systems. I
suppose I could go with different encoding methods, such as JIS, but
Unicode is already supported by Windows.

I know that RTF <> Unicode, but I was thinking about the fact that
Unicode characters in RTF are stored as escaped ASCII text (like
\u35615?).


Ah, I see what you are up to

- you might have a point about using RTF

One thing about Unicode
- it is not really supported by Windows itself in 95, 98 and ME
- it is supported by Applications but that is not really the same
thing
- I wonder what happens when you use normal cut and paste with a
Unicode Japanese font ...


Right now I'm using SendKeys for copying and pasting, and that works...
eh... well enough, I guess. In Win2k, anyway.
--
auric "underscore " "underscore " "at" hotmail "dot" com
*****
The world is changing: I feel it in the water, I feel it in the earth,
and I smell it in the air.
Jul 17 '05 #7
On Sat, 10 Jan 2004 03:17:27 -0700, Auric__
<no*********@em ail.address> wrote:

<snip>
- I wonder what happens when you use normal cut and paste with a
Unicode Japanese font ...


Right now I'm using SendKeys for copying and pasting, and that works...
eh... well enough, I guess. In Win2k, anyway.


Hmm....

Sounds interesting - you'll need to test it on 95/98
2k is from the NT stable ...

If you have a very simple Testbed and a Jap Font I could test it on 95
- and perhaps 98
Jul 17 '05 #8
"...And the next sign of the Apocalypse will be..."
*****
On Sat, 10 Jan 2004 11:19:02 +0000 (UTC), J French wrote:
On Sat, 10 Jan 2004 03:17:27 -0700, Auric__
<no*********@e mail.address> wrote:

<snip>
- I wonder what happens when you use normal cut and paste with a
Unicode Japanese font ...


Right now I'm using SendKeys for copying and pasting, and that works...
eh... well enough, I guess. In Win2k, anyway.


Hmm....

Sounds interesting - you'll need to test it on 95/98
2k is from the NT stable ...

If you have a very simple Testbed and a Jap Font I could test it on 95
- and perhaps 98


Nah, that's okay. I dual-boot to WinME for my games that don't like 2k,
so there's my non-NT test system right there. (And somewhere around here
there's a machine with a working install of 98SE...) Thanks for the
offer, though. Once I get results, one way or the other, I'll let you
know.
--
auric "underscore " "underscore " "at" hotmail "dot" com
*****
Never trust a person who says, "Trust Me"
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2234
by: xyz | last post by:
I have a menu item to handle clipboard actions (cut, copy, paste). When I paste text that I copied from a Hungarian web page, the display looks normal on my RichTextBox, but the text retrieved from the clipboard is corrupted. For example, a U with double accent ( byte code x'FB' ) is replaced by a question mark in my txtEdit.Text after a Paste operation. It seems that the Clipboard.GetText() is changing the data. How is it possible to...
1
2354
by: Alfred Tascon | last post by:
Who knows how to create a Clipboard object/entry that when pasted produces a URL link - a link that when pasted into Word can be ctrl-clicked to launch a browser? Any help appreciated. Oh and i have tried: Clipboard.SetText("<a href='http://google.com</a>",TextDataFormat.Html); Clipboard.SetText("<body><a href='http://google.com</a></body>",TextDataFormat.Html);
0
2162
by: Raymond Bissonnette | last post by:
Hi, Any idea what's wrong with these two lines? I get nothing on the clipboard Dim sHTML As String = "<p>...</p>" Clipboard.SetText(sHTML, TextDataFormat.Html) TextDataFormat.Text works fine. I must be missing something.
0
2978
by: renfes | last post by:
Hey everyone. I have a program that watches a .txt log file from a chat client or a game and based on each line, triggers events. One thing I am trying to do is send the contents of a text file to the clipboard, then paste it to the program... Here is the code I am using... namespace Project1 { public partial class Form1 : Form {
1
4547
by: Sefner | last post by:
Hey everyone. I have a program that watches a .txt log file from a chat client or a game and based on each line, triggers events. One thing I am trying to do is send the contents of a text file to the clipboard, then paste it to the program... Here is the code I am using... namespace Project1 { public partial class Form1 : Form {
1
18670
by: Figmo | last post by:
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active window (any application) to copy whatever text is selected to the clipboard. It then issues a C# Clipboard.GetText(...) and does some processing with this string. All is good, no errors thus far.
3
7305
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm using the following in my console app: My.Computer.Clipboard.SetText(sb.ToString()) i'm getting inconsistent results with the copy. sometimes it works and most of the time i get the following error below. i just keep executing until it works. i'm getting the following error:
6
8171
by: Adam Sandler | last post by:
Hello, I have a richtextbox and a method which copies the contents of the richtextbox to the clipboard -- like so: Clipboard.SetText(this.richTextBox1.Text); The problem is if there are any returns, and the user pastes the clipboard contents into notepad, all the data appears on one line -- with a bunch of non printing characters (which show up as boxes) where
1
2413
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, why do i get this on Vista, while trying to set text to clipboard: Error: System.Runtime.InteropServices.ExternalException: Der angeforderte Clipboard-Vorgang war nicht erfolgreich. bei System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr) bei System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay) bei System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat
0
9586
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10043
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.