Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to control other windows applications??

Posted on 2000-03-13
6
Medium Priority
?
155 Views
Last Modified: 2013-11-20
basically i need to write a VC program which can control other windows applications.

for example, i would like this program to launch winword, and let it open a *.doc file, and then invoke its "save as" menu item to save the file as text format.

how would i automate this process in a VC program?
0
Comment
Question by:BBB
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:vachooho
ID: 2614468
open ClassWizard
click on  "newClass" button
select from type lib
file open dialog will be shown
select type librAry you need
(Excel8.olb forExcel 97, msacc8.olb for Access 97 etc.)
and add neccessary classes to your project
ClassWizwd will create wrapper class to automate objects you need

The exact sequence of calls needed for doing what you need can be found in Office VBA help.
0
 
LVL 5

Expert Comment

by:vachooho
ID: 2614481
0
 

Expert Comment

by:barbix
ID: 2628170
Hi.

Well there a good example for you question in :

http://support.microsoft.com/support/kb/articles/Q238/6/11.asp

Hope it will work :)

     Eran
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Expert Comment

by:barbix
ID: 2628185
barbix changed the proposed answer to a comment
0
 

Accepted Solution

by:
barbix earned 148 total points
ID: 2628189
Hi.

Well there a good example for you question in :

http://support.microsoft.com/support/kb/articles/Q238/6/11.asp 

Hope it will work :)

     Eran
0
 

Author Comment

by:BBB
ID: 2628884
Hi there,
I appreciate all the clues...

But my question is more generic: I want to control other windows applications automatically in my program. I took winword as an example. So assume other windows application do not support OLE, etc kind of thing, how would I control these applications?

There are something called hook in windows. But I am not sure how to use them.

Thanks
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question