473,804 Members | 3,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1590
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.comwr ote:
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 objektorientier ter Datenverarbeitu ng
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
1940
by: ad | last post by:
Hi, How can we get the content of clipboard with program?
15
12305
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 Clipboard class to get an EnhancedMetafile or MetafilePict object from the Clipboard, use that to create a new Metafile object, and then draw that Metafile object using Graphics.DrawImage. It doesn't seem to be that simple.
6
17794
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 notepad, copy it to the clipboard, then paste it in another program. The other program runs on Windows XP. Obviously, the correct answer is to have the creators of the other program to disable pasting in a password field, but they are reluctant...
2
2612
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 when any clipboard functions are called.( ClipBoard operations must be in a STA thread, so I create a new thread to do it) What should I do if I want to use clipboard in IIS 6? Is there any config work about clipboard permission need to be done?...
0
9705
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
9576
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
10323
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
9138
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...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5515
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4291
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
2
3809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.