473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Clipboard operations

Hello together,

I want to write an application which copies the current date to the
clipboard. After that I will be able to insert it at the current cursor
position. If possible, the text should be inserted automatically at the
current cursor position.

Now I already solved that problem in PERL, but after creating a binary
from it, the code which had original 10 lines got a 2 MB .exe file.

I learned C++ 7 years ago in university and did not use it any more.

I need your help to show me, how I can do clipboard operations, I will
be able to solve the rest of the problems.
Thank you
Oliver
Jul 19 '07 #1
5 1573
Oliver Soeder wrote:
[..]
I need your help to show me, how I can do clipboard operations, I will
be able to solve the rest of the problems.
There is no "clipboard" in C++. You need to ask your OS-specific
question in the newsgroup dedicated to your OS.
Jul 19 '07 #2
Victor Bazarov schrieb:
Oliver Soeder wrote:
>[..]
I need your help to show me, how I can do clipboard operations, I will
be able to solve the rest of the problems.

There is no "clipboard" in C++. You need to ask your OS-specific
question in the newsgroup dedicated to your OS.

There is also no clipboard class? I even have it in Perl. I need it for
Windows.
Jul 19 '07 #3
Oliver Soeder wrote:
Victor Bazarov schrieb:
>Oliver Soeder wrote:
>>[..]
I need your help to show me, how I can do clipboard operations, I
will be able to solve the rest of the problems.

There is no "clipboard" in C++. You need to ask your OS-specific
question in the newsgroup dedicated to your OS.

There is also no clipboard class? I even have it in Perl. I need it
for Windows.
Do I really need to repeat what I just posted to have you convinced?
Jul 19 '07 #4
Oliver Soeder wrote:
Victor Bazarov schrieb:
>Oliver Soeder wrote:
>>[..]
I need your help to show me, how I can do clipboard operations, I will
be able to solve the rest of the problems.

There is no "clipboard" in C++. You need to ask your OS-specific
question in the newsgroup dedicated to your OS.
There is also no clipboard class? I even have it in Perl. I need it for
Windows.
There is a clipboard class in the C++ you are using (no doubt).

There is no clipboard class in *standard* C++, which is what we discuss
here. Follow Victor's advice.

John
Jul 19 '07 #5
On Jul 19, 9:14 pm, John Harrison <john_androni...@hotmail.comwrote:
Oliver Soeder wrote:
Victor Bazarov schrieb:
Oliver Soeder wrote:
[..]
I need your help to show me, how I can do clipboard operations, I will
be able to solve the rest of the problems.
There is no "clipboard" in C++. You need to ask your OS-specific
question in the newsgroup dedicated to your OS.
There is also no clipboard class? I even have it in Perl. I need it for
Windows.
There is a clipboard class in the C++ you are using (no doubt).
Are you sure? There isn't in any of the C++ I use under Unix.
(The C++, of course, allow access to the various X Windows
libraries, but those library API's are always in C, without any
classes. And they're not really part of C++, not even the
platform specific C++.)
There is no clipboard class in *standard* C++, which is what
we discuss here. Follow Victor's advice.
The word is "portable" C++, not standard C++. Or simply C++.
Unlike some other languages, C++ does not try to provide
everything; it provides the framework, but expects you to use
other libraries for all but the most basics. I'm sure
wxWidgets, for example, has a clipboard class, or Qt, or any
number of other windowing libraries. But not C++ per se.

This is a general philosophy of C++. It has some advantages;
you can find and choose a windowing library which corresponds to
your philosophy as to what a windowing library should be like
(which may not correspond to mine), for example. It also has
some disadvantages: the next C++ programmer you hire might not
know the library you're using.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Jul 20 '07 #6

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

Similar topics

16
by: ad | last post by:
Hi, How can we get the content of clipboard with program?
15
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the...
6
by: =?Utf-8?B?TWljaGFlbCAwMw==?= | last post by:
I need to disable the clipboard function in Windows XP. We are having a problem with users using CTRL+C in one program, then using CTRL+V in another. Specifically, they type their password into...
2
by: Fade | last post by:
In my app, I use clipboard to paste some html text into ppt. The program runs correctly in VS2005 development server, and IIS 5.1 in WinXP SP2. But it failed on WinServer 2003. The thread blocks...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.