Click here to Skip to main content
15,914,237 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCInternetSession - how to exit Pin
Olli19-Aug-02 1:27
Olli19-Aug-02 1:27 
GeneralRe: CInternetSession - how to exit Pin
Stephane Rodriguez.19-Aug-02 3:00
Stephane Rodriguez.19-Aug-02 3:00 
GeneralRe: CInternetSession - how to exit Pin
Olli22-Aug-02 0:27
Olli22-Aug-02 0:27 
Generalhelp me plz Pin
imran_rafique19-Aug-02 1:16
imran_rafique19-Aug-02 1:16 
GeneralRe: help me plz Pin
Tomasz Sowinski19-Aug-02 1:21
Tomasz Sowinski19-Aug-02 1:21 
GeneralRe: help me plz Pin
imran_rafique19-Aug-02 1:42
imran_rafique19-Aug-02 1:42 
GeneralRe: help me plz Pin
Tomasz Sowinski19-Aug-02 1:49
Tomasz Sowinski19-Aug-02 1:49 
Generalplz help me Pin
imran_rafique19-Aug-02 0:27
imran_rafique19-Aug-02 0:27 
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)
{
hwnd=(HWND)par_hwnd.ToInt64();
TCHAR szBuffer[256],szBuffer1[256];
::GetWindowText(hwnd, szBuffer, sizeof(szBuffer) / sizeof(TCHAR));
::GetClassName(hwnd, szBuffer1, sizeof(szBuffer1) / sizeof(TCHAR));
//////////////////////////////////////////////////////////
HWND h=::FindWindowEx(hwnd,0,szBuffer1,szBuffer);
//////////////////////////////////////////////////////////
}//code finish herer
///////////////////////////////////////////
h variable recive zero 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 so that it should not recive zero?

r00d0034@yahoo.com
GeneralRe: plz help me Pin
Fredrik Skog19-Aug-02 0:59
Fredrik Skog19-Aug-02 0:59 
GeneralRe: plz help me Pin
Tomasz Sowinski19-Aug-02 1:10
Tomasz Sowinski19-Aug-02 1:10 
GeneralRe: plz help me Pin
imran_rafique19-Aug-02 1:46
imran_rafique19-Aug-02 1:46 
GeneralRe: plz help me Pin
Tomasz Sowinski19-Aug-02 1:50
Tomasz Sowinski19-Aug-02 1:50 
GeneralDirecting Window Ouput Pin
Peter Liddle18-Aug-02 23:15
Peter Liddle18-Aug-02 23:15 
GeneralRe: Directing Window Ouput Pin
Roger Allen19-Aug-02 2:32
Roger Allen19-Aug-02 2:32 
Generalwindow size Pin
Zizilamoroso18-Aug-02 23:07
Zizilamoroso18-Aug-02 23:07 
GeneralRe: window size Pin
Tomasz Sowinski18-Aug-02 23:29
Tomasz Sowinski18-Aug-02 23:29 
GeneralSTL: get range where... Pin
peterchen18-Aug-02 22:44
peterchen18-Aug-02 22:44 
GeneralRe: STL: get range where... Pin
Tomasz Sowinski18-Aug-02 22:51
Tomasz Sowinski18-Aug-02 22:51 
GeneralRe: STL: get range where... Pin
peterchen20-Aug-02 10:26
peterchen20-Aug-02 10:26 
GeneralCEdit question (Ownerdraw???) Pin
alex.barylski18-Aug-02 22:43
alex.barylski18-Aug-02 22:43 
GeneralSearching in a CListCtrl Pin
Poul Haahr Klemmensen18-Aug-02 22:40
Poul Haahr Klemmensen18-Aug-02 22:40 
GeneralRe: Searching in a CListCtrl Pin
Tomasz Sowinski18-Aug-02 22:45
Tomasz Sowinski18-Aug-02 22:45 
GeneralRe: Searching in a CListCtrl Pin
anonymouss19-Aug-02 1:20
anonymouss19-Aug-02 1:20 
Generalprogress bar from CView Pin
tulc_kris18-Aug-02 22:17
tulc_kris18-Aug-02 22:17 
GeneralRe: progress bar from CView Pin
Tomasz Sowinski18-Aug-02 22:26
Tomasz Sowinski18-Aug-02 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.