plz read and solve mine problem
-
please read that code and solve mine problem tmpProcess = new Process(); tmpProcess.WaitForInputIdle(); tmpProcess.StartInfo.FileName="f:\\mirc59t"; try{ tmpProcess.Start(); while(! tmpProcess.Responding)System.Windows.Forms.Application.DoEvents(); }catch{} tmpProcess.WaitForInputIdle(); IntPtr hWnd=tmpProcess.MainWindowHandle; Srm=new send_recive_messages(hWnd); /*///////////////////////////////////////////////////// managed public __gc class send_recive_messages constructor ////////////////////////////////////////////////////*/ send_recive_messages::send_recive_messages(IntPtr par_hwnd) { CString cstr=""; LPTSTR str=""; hwnd=(HWND)par_hwnd.ToInt64(); ////////////////////////////////////////////////////////// HWND h=GetWindow(h,GW_CHILD); ////////////////////////////////////////////////////////// } /////////////////////////////////////////// h variable recive null that's why remaining code could not run. it should not recive zero because the process main window contain two button and four Static members. can any body tell why it recive 0? and what i have to do that it should not recive zero? r00d0034@yahoo.com