Destory  window  not working

Posted on 2015-01-06
Last Modified: 2015-01-06
It is required to   close  other  application  from  my  project .I  am  able to find window  by  FindWindow,but  destoy window does  not  destory  it.Will  any  one  able to tell  what should I  do?

CWnd* wnd = CWnd::FindWindow(NULL,_T("EIAQUANT REPORT"));

Open in new window

Question by:enthurao

Accepted Solution

Tom Chadaravicius earned 500 total points
ID: 40534894

Author Closing Comment

ID: 40534901
::SendMessage(wnd->m_hWnd,WM_DESTROY,0,0);  this worked perfectly

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Internet Business Fax to Email Made Easy - With  eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now