472,352 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 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 4599
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...
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...
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...
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 -...
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 =...
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...
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...
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...
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...
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...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

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.