CompuServe Thread

FindWindow Question.

1 messages in this thread
#30707From: Darrell WilsonJul 12, 1994 2:41 PM
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