conor0callaghan
Programmer
I'm trying to write an application which will listen to applications running in windows.
Things I need to achieve this.
1 Get the name of the application focused or being worked on. ( I've this part done using GetForeGroundWindow());
2 Now that I have the CWnd I convert it to a CFrameWnd so
I can get objects representing the CDocument and Cview
(I've this part done by casting the CWnd * to a CFrameWnd *
3. Now I need to get the name of the child window being worked on in the application. I.e the CDocument object.
Now create the CDocument object but the program crashes each time when I try to get the title or address of the File represented using the CDocument.]
Any Ideas what to do ? Am I going the right way about it?
Things I need to achieve this.
1 Get the name of the application focused or being worked on. ( I've this part done using GetForeGroundWindow());
2 Now that I have the CWnd I convert it to a CFrameWnd so
I can get objects representing the CDocument and Cview
(I've this part done by casting the CWnd * to a CFrameWnd *
3. Now I need to get the name of the child window being worked on in the application. I.e the CDocument object.
Now create the CDocument object but the program crashes each time when I try to get the title or address of the File represented using the CDocument.]
Any Ideas what to do ? Am I going the right way about it?