Hi All
I am trying to find excel file is open or not through FindWindow function.
In this code if file is open then showCode:CWnd *pExal; pExal = CWnd::FindWindow(NULL, _T("C:\\test.xls")); if(pExal == NULL){ AfxMessageBox("Couldn't find Excel file"); } else { AfxMessageBox("Excel file is open"); }nad if not open then alsoCode:pExal == NULLwhere i am wrong.Plz help meCode:pExal == NULL




Reply With Quote