Clipboard operations

O

Oliver Soeder

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
 
V

Victor Bazarov

Oliver said:
[..]
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.
 
O

Oliver Soeder

Victor said:
Oliver said:
[..]
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.
 
V

Victor Bazarov

Oliver said:
Victor said:
Oliver said:
[..]
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?
 
J

John Harrison

Oliver said:
Victor said:
Oliver said:
[..]
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
 
J

James Kanze

Oliver said:
Victor said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,924
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top