CompuServe Messages

FindWindow Question.

    12-Jul-94 14:41:40
Sb: FindWindow Question.
Fm: Darrell Wilson 70254,376
To: ALL
I am writing a Data Acquistion Simulation application and am having a problem with FindWindow. I want to communicate between two executing programs and tried to use FindWindow to get the pointer to one program from within the other. I was able to get the following to work: CWnd* pCWnd; CString ClassName = "AfxFrameOrView"; pCWnd = FindWindow(ClassName,NULL); But I am concerned that it will not always return the pointer I want (i.e. if another MFC application was also executing). I would be happy if the following would work, but it just returns a NULL: CWnd* pCWnd; CString WindowTitle = "SLDISK"; pCWnd = FindWindow(NULL,WindowTitle); How do I find the correct Window Title? Is there a partial match capability? Thanks, Darrell