controlling a defined application by my application

i m working on a project in which i have to control different window's application with the help of my program in VC++.
For this i need the handle of that application and the Handle of different buttons used in that application.
so please help me because it is urgent for me.
and please send a copy of solution to my mail id
thanks a lot
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

please delete the second question which is equal to this one. You may delete it before someone post a comment about it ....
You don't need two equal questions

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
puneet_mittalAuthor Commented:
thanks a lots
excuse me puneet_mittal,
I don't deserve the points you gave me, I did not answer your question (sorry I don't know this answer). Why did not wait more, may be someone would answer this question. So many points for a suggestion to delete a duplicated question ?
I am confused ....
puneet_mittalAuthor Commented:
yaa my dear friend
this thanks for the suggestion for guiding me.actually i m new in this group.well donot worry about the solution.but can u solve my 1 more problem.
problem:how can i take/send the data through  serial port with VC++ program.
Hi puneet_mittal,

There are two answers:
1). Use:  ActiveX component MSComm32.OCX
2). Use:  CreateFile() CloseHandle() ReadFile() WriteFile() GetCommState() SetCommState() DeviceIoControl()

First from:                                                     

And then, because here is the delicate part from:

Pro solution:

Good start point:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.