Destory window not working

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

ADITYA RAOSoftware DeveloperAsked:
Who is Participating?
Tom ChadaraviciusSenior DeveloperCommented:
ADITYA RAOSoftware DeveloperAuthor Commented:
::SendMessage(wnd->m_hWnd,WM_DESTROY,0,0);  this worked perfectly
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.

All Courses

From novice to tech pro — start learning today.