473,386 Members | 1,679 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,386 software developers and data experts.

Implement Ctrl-C, Ctrl-V

Hi,
I am writing a C program trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.
Danny
Nov 13 '05 #1
5 4800
On 14 Aug 2003 07:47:48 -0700
da****@yahoo.com (Danny) wrote:
Hi,
I am writing a C program
Then why are you posting in a C++ group?
trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.


You can't (using standard C/C++).

br
socketd
Nov 13 '05 #2

"Danny" <da****@yahoo.com> wrote in message
news:68**************************@posting.google.c om...
Hi,
I am writing a C program trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.
Danny


Windows-specific problem is off-topic here.
Try ask in comp.os.ms-windows.programmer.win32

--
Jeff
Nov 13 '05 #3
In <68**************************@posting.google.com > da****@yahoo.com (Danny) writes:
I am writing a C program trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.


The C abstract machine is single-tasking, single-threaded, therefore
there is exactly one application running at a time, as far as the C
language is concerned.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #4

"Danny" <da****@yahoo.com> wrote in message news:68**************************@posting.google.c om...
Hi,
I am writing a C program trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.
Danny


Read the documentation about the clipboard or download the tutorial
of lcc-win32 about C programming under windows. There search for
the clipboard examples.

jacob
Nov 13 '05 #5
jacob navia wrote:
"Danny" <da****@yahoo.com> wrote in message
I am writing a C program trying to read highlighted text in
aother application (Acrobat Reader or Microsoft Office). How
do I find out which application is on focus and grab the text
highlighted? Thanks.


Read the documentation about the clipboard or download the
tutorial of lcc-win32 about C programming under windows. There
search for the clipboard examples.


Please restrict your answers to standard C in c.l.c. Redirection
to other newsgroups which do not insist on portability is also
acceptable. In some cases clearly labelling them as non-portable
extensions will do. However giving the innocents the impression
that such an operation is generally available in portable C is
totally unacceptable here.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 13 '05 #6

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

Similar topics

6
by: Charles Law | last post by:
This is going to seem like a basic OO question, but it comes up and bites me every now and again. Suppose we have a multi-tiered protocol to implement, what is the logical, OO way to design the...
2
by: Billy Porter | last post by:
Greetings, I got a class that wraps the System.Data.SqlClient.SqlConnection class (no COM interaction). I'm not sure if I'm supposed to implement the IDisposable pattern for this wrapper or not....
4
by: Sanjay Vyas | last post by:
Sorry, forgot to cross post this one.. This is rather unusual as we would expect any Collection class to implement ICollection interface and furthermore a Dictionary class should implement...
4
by: Peter | last post by:
I want to copy a parent class instance's all datas to a child's. It's actually a C++'s copy constructor. But why the following code does not work - there is a compile error! How it should look...
13
by: Sherif ElMetainy | last post by:
Hello I was just got VS 2005 preview, and was trying generics. I tried the following code int intArray = new int; IList<int> intList = (IList<int>) intArray; it didn't compile, also the...
3
by: Brett Hall | last post by:
I have a VB.NET interface that my managed C++ code is to implement. I seem to be stuck implementing an event defined in that interface. Does anyone have a simple code snippet that will show me...
5
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was...
7
by: moondaddy | last post by:
If I'm in a class that inherits an interface, is there a shortcut key that will write the implementation of the interface into the class? I remember seeing something like this in vb.net. ...
0
by: emin.shopper | last post by:
I had a need recently to check if my subclasses properly implemented the desired interface and wished that I could use something like an abstract base class in python. After reading up on metaclass...
5
by: Tony Johansson | last post by:
Hello! Assume you have the following interface and classes shown below. It is said that a class must implement all the methods in the interface it inherits. Below we have class MyDerivedClass...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.