Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tell linker to add cpp files Pin
Stuart Dootson27-Feb-09 4:17
professionalStuart Dootson27-Feb-09 4:17 
GeneralRe: Tell linker to add cpp files Pin
dehseth27-Feb-09 6:41
dehseth27-Feb-09 6:41 
QuestionRibbon application crash on some systems while it works fine on others. Pin
VC++Maniac27-Feb-09 2:47
VC++Maniac27-Feb-09 2:47 
QuestionFile Browser Pin
pooja_friends27-Feb-09 2:20
pooja_friends27-Feb-09 2:20 
AnswerRe: File Browser Pin
Jijo.Raj27-Feb-09 2:40
Jijo.Raj27-Feb-09 2:40 
QuestionGrid Help needed Pin
pandit8427-Feb-09 0:29
pandit8427-Feb-09 0:29 
AnswerRe: Grid Help needed Pin
pandit8427-Feb-09 4:28
pandit8427-Feb-09 4:28 
Question?? Pin
sonu.saini.76@gmail.com27-Feb-09 0:25
sonu.saini.76@gmail.com27-Feb-09 0:25 
// MyParDlg.cpp : implementation file
//

#include "stdafx.h"
#include "MyPar.h"
#include "MyParDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
	CAboutDlg();

// Dialog Data
	//{{AFX_DATA(CAboutDlg)
	enum { IDD = IDD_ABOUTBOX };
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAboutDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	//{{AFX_MSG(CAboutDlg)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
	//{{AFX_DATA_INIT(CAboutDlg)
	//}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAboutDlg)
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
	//{{AFX_MSG_MAP(CAboutDlg)
		// No message handlers
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyParDlg dialog

CMyParDlg::CMyParDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMyParDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMyParDlg)	
	m_sCity = _T("");
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CMyParDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMyParDlg)	
	DDX_Control(pDX, IDC_IMAGE, m_Image);
	DDX_Control(pDX, IDC_COMBO_CHECKOUT_MONTHYEAR, m_cbCheckoutMonthYear);
	DDX_Control(pDX, IDC_COMBO_GUEST_ROOMS, m_cbGuestRooms);	
	DDX_Control(pDX, IDC_COMBO_HOTELS, m_cbHotels);
	DDX_Control(pDX, IDC_COMBO_STATE_PROV, m_cbStateProv);
	DDX_Control(pDX, IDC_COMBO_CHECKIN_DAY, m_cbCheckinDay);
	DDX_Control(pDX, IDC_COMBO_CHECKIN_MONTH_YEAR, m_cbCheckinMonthYear);
	DDX_Control(pDX, IDC_COMBO_CHECKOUT_DAY, m_cbCheckoutDay);
	DDX_Control(pDX, IDC_COMBO_COUNTRY, m_cbCountry);
	DDX_Control(pDX, IDC_COMBO_SEARCH_WITHIN, m_cbSearchWithin);
	DDX_Text(pDX, IDC_EDIT_CITY, m_sCity);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CMyParDlg, CDialog)
	//{{AFX_MSG_MAP(CMyParDlg)
	ON_WM_SYSCOMMAND()
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	ON_BN_CLICKED(IDC_BUTTON1, OnStart)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyParDlg message handlers

BOOL CMyParDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Add "About..." menu item to system menu.

	// IDM_ABOUTBOX must be in the system command range.
	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
	ASSERT(IDM_ABOUTBOX < 0xF000);

	CMenu* pSysMenu = GetSystemMenu(FALSE);
	if (pSysMenu != NULL)
	{
		CString strAboutMenu;
		strAboutMenu.LoadString(IDS_ABOUTBOX);
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	// TODO: Add extra initialization here
	m_BMP.LoadBitmap(IDB_HILTON);
	m_Image.SetBitmap(m_BMP);
	
	/*7bmp_FindButton.LoadBitmap(IDB_SEARCH);
	CButton* pButton = (CButton* )GetDlgItem(IDC_BUTTON1);
	pButton->ModifyStyle(0,BS_BITMAP);
	pButton->SetBitmap(bmp_FindButton);

	bmp_ExitButton.LoadBitmap(IDB_EXIT);
	pButton = (CButton* )GetDlgItem(IDCANCEL);
	pButton->ModifyStyle(0,BS_BITMAP);
	pButton->SetBitmap(bmp_ExitButton);
	*/

	//Fill default values to all the controls
	FillSearchWithin();
	FillStateProv();
	FillCountry();
	FillCheckinDay();
	FillCheckinMonthYear();
	FillCheckoutDay();
	FillCheckoutMonthYear();
	FillHotels();
	FillGuestRooms();
	m_cbSearchWithin.SetCurSel(4);
	m_cbHotels.SetCurSel(0);
	m_cbGuestRooms.SetCurSel(0);
	m_cbCountry.SetCurSel(89);
	UpdateData();

	return FALSE;  // return TRUE  unless you set the focus to a control
}

void CMyParDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
	if ((nID & 0xFFF0) == IDM_ABOUTBOX)
	{
		CAboutDlg dlgAbout;
		dlgAbout.DoModal();
	}
	else
	{
		CDialog::OnSysCommand(nID, lParam);
	}
}

// If you add a minimize button to your dialog, you will need the code below
//  to draw the icon.  For MFC applications using the document/view model,
//  this is automatically done for you by the framework.

void CMyParDlg::OnPaint() 
{
	if (IsIconic())
	{
		CPaintDC dc(this); // device context for painting

		SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

		// Center icon in client rectangle
		int cxIcon = GetSystemMetrics(SM_CXICON);
		int cyIcon = GetSystemMetrics(SM_CYICON);
		CRect rect;
		GetClientRect(&rect);
		int x = (rect.Width() - cxIcon + 1) / 2;
		int y = (rect.Height() - cyIcon + 1) / 2;

		// Draw the icon
		dc.DrawIcon(x, y, m_hIcon);
	}
	else
	{
		CDialog::OnPaint();
	}
}

// The system calls this to obtain the cursor to display while the user drags
//  the minimized window.
HCURSOR CMyParDlg::OnQueryDragIcon()
{
	return (HCURSOR) m_hIcon;
}

void CMyParDlg::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

// for Hilton
void CMyParDlg::OnStart() 
{
	// TODO: Add your control notification handler code here
	BSTR bsStatus;
    m_bReady=0;
	m_bNextPage = 1;
	CString sTemp;

	UpdateData();
    CString mPass("*****"); //<-------- Your Password here
    CString mUser("*****");//<-------- Your user ID here
	//London
    CString mCity("London"); 
    CString mTopDestination("Test");
    CString mState("Washington");
    CString mCountry("United Kingdom");
	CString mCheckInDay("28");
	CString mCheckInMonthYr("Dec 2007");
	CString mCheckOutDay("29");
	CString mCheckOutMonthYr("Dec 2007");


    //BSTR bsCity				= mCity.AllocSysString();
	BSTR bsCity = m_sCity.AllocSysString();
    BSTR bsTopDestination	= mTopDestination.AllocSysString();

    /*BSTR bsState			= mState.AllocSysString();
	BSTR bsCountry			= mCountry.AllocSysString();
	BSTR bsCheckInDay		= mCheckInDay.AllocSysString();
	BSTR bsCheckInMonthYr	= mCheckInMonthYr.AllocSysString();
	BSTR bsCheckOutDay		= mCheckOutDay.AllocSysString();
	BSTR bsCheckOutMonthYr	= mCheckOutMonthYr.AllocSysString();*/
	int i = 0;
	i = m_cbStateProv.GetCurSel();
	i = m_cbCountry.GetCurSel();
	i =	m_cbCheckinDay.GetCurSel();
	i = m_cbCheckinMonthYear.GetCurSel();
	i =	m_cbCheckoutDay.GetCurSel();
	i =	m_cbCheckoutMonthYear.GetCurSel();


    CString mStr;
    HRESULT hr1 ;

    hr1 = CoInitialize(NULL);
    if(!SUCCEEDED(hr1))
        return ;

    hr1 = CoCreateInstance (CLSID_InternetExplorer, 
        NULL, CLSCTX_LOCAL_SERVER, 
        IID_IWebBrowser2, (LPVOID *)&m_pBrowser); 
        //Create an Instance of web browser

    if(hr1==S_OK)
    {
        VARIANT_BOOL pBool=true;
        //Commentout this line if you dont 
        //want the browser to be displayed
        m_pBrowser->put_Visible( pBool ) ;
        //the yahoo mail site
        COleVariant vaURL("http://www.hilton.com/") ;
        COleVariant null; 
        //Open the mail login page
        m_pBrowser->Navigate2(vaURL,null,null,null,null) ;
		//m_pBrowser->put_FullScreen(pBool);

        //This while loop maks sure that the page 
        //is fully loaded before we go to the next page
        while(!m_bReady) 
        {
            m_pBrowser->get_StatusText(&bsStatus);
            mStr=bsStatus;
            if(mStr=="Done")m_bReady=1;
        }

        IDispatch* pDisp;
        //Get the underlying document object of the browser
        hr1=m_pBrowser->get_Document(&pDisp);

        if (pDisp != NULL )
        {
            IHTMLDocument2* pHTMLDocument2;
            HRESULT hr;
            hr = pDisp->QueryInterface( IID_IHTMLDocument2,
            (void**)&pHTMLDocument2 );
            //Ask for an HTMLDocument2 interface

            if (hr == S_OK)
            {
                //Enumerate the HTML elements
                IHTMLElementCollection* pColl = NULL;
                hr = pHTMLDocument2->get_all( &pColl );
                if (hr == S_OK && pColl != NULL)
                {
                    LONG celem;
                    //Find the count of the elements
                    hr = pColl->get_length( &celem );
                    if ( hr == S_OK )
                    {
                        //Loop through each elment
                        for ( int i=0; i< celem; i++ )
                        {
                            VARIANT varIndex;
                            varIndex.vt = VT_UINT;
                            varIndex.lVal = i;
                            VARIANT var2;
                            VariantInit( &var2 );
                            IDispatch* pDisp; 
                            hr = pColl->item( varIndex, 
                                var2, &pDisp );//Get an element

                            if ( hr == S_OK )
                            {
                                IHTMLElement* pElem;
                                hr = pDisp->QueryInterface( 
                                //Ask for an HTMLElemnt interface
                                    IID_IHTMLElement,
                                    (void **)&pElem);
                                if ( hr == S_OK )
                                {
                                    BSTR bstr;
                                    //Get the tag name for the element
                                    hr = pElem->get_tagName(&bstr);
                                    CString strTag; 
                                    strTag = bstr;
                                    //We need to check for 
                                    //input elemnt on login screen
                                    IHTMLInputTextElement* pUser;
                                    hr = pDisp->QueryInterface(
                                        IID_IHTMLInputTextElement, 
                                        (void **)&pUser );

                                    if ( hr == S_OK )
                                    {
                                        pUser->get_name(&bstr);
                                        mStr=bstr;										
                                        if(mStr=="city"){                                         
                                            pUser->put_value(bsCity);											
										}                                     

                                        pUser->Release();
                                    }
                                    else
									{
									//We need to check for 
                                    //input combo elemnt on login screen
                                    IHTMLSelectElement* pUser;
                                    hr = pDisp->QueryInterface(
                                        IID_IHTMLSelectElement, 
                                        (void **)&pUser );

                                    if ( hr == S_OK )
                                    {
                                        pUser->get_name(&bstr);
                                        mStr=bstr;										
                                        if(mStr=="topDestination"){                                             
											//pUser->put_name(bsTopDestination);
											//pUser->put_selectedIndex(4);
										}
										else if(mStr == "state"){
											//pUser->put_value(bsState);											
											pUser->put_selectedIndex(m_cbStateProv.GetCurSel() + 1);
										}
										else if(mStr == "country"){
											//pUser->put_value(bsCountry);
											pUser->put_selectedIndex(m_cbCountry.GetCurSel() + 1);
										}
										else if(mStr == "checkInDay"){
											//pUser->put_value(bsCheckInDay);
											pUser->put_selectedIndex(m_cbCheckinDay.GetCurSel() + 1);
										}
										else if(mStr == "checkInMonthYr"){
											//pUser->put_value(bsCheckInMonthYr);
											pUser->put_selectedIndex(m_cbCheckinMonthYear.GetCurSel() +1);
										}
										else if(mStr == "checkOutDay"){
											//pUser->put_value(bsCheckOutDay);
											pUser->put_selectedIndex(m_cbCheckoutDay.GetCurSel() + 1);
										}
										else if(mStr == "checkOutMonthYr"){
											//pUser->put_value(bsCheckOutMonthYr);
											pUser->put_selectedIndex(m_cbCheckoutMonthYear.GetCurSel() + 1);
										}
									}
									IHTMLAnchorElement* pButton;
                                    hr = pDisp->QueryInterface(
                                        IID_IHTMLAnchorElement, 
                                        (void **)&pButton );
									if ( hr == S_OK )
									{
										pButton->get_name(&bstr);
                                        mStr=bstr;
										//AfxMessageBox(mStr);
									}
                          
                                    }
                                    pElem->Release();
                                }
                                pDisp->Release();
                            }
                        }
                    }
                    pColl->Release();
                }
                pHTMLDocument2->Release();
                //For the next page open a fresh document
            }
            pDisp->Release();
        }
    }

    //Lets change the staus text, so as to 
    //make sure that the next page is loaded
    /*CString statustext="OK"; 
    m_pBrowser->put_StatusText(statustext.AllocSysString());
    m_bReady=0;

    while(!m_bReady)
    {
        m_pBrowser->get_StatusText(&bsStatus);
        mStr=bsStatus;
        if(mStr=="Done")m_bReady=1;
    } //Ok, next page that is Inbox is loaded*/
	//MoreSearchOptions("More Search Options");
	MoreSearchOptions("fnSetRoomsReqSubmit");
	
}
/*
void CMyParDlg::OnStart() 
{
	// TODO: Add your control notification handler code here
	BSTR bsStatus;
    m_bReady=0;

    CString mPass("*****"); //<-------- Your Password here
    CString mUser("*****");//<-------- Your user ID here
	//London
    CString mCity("Paris"); //<-------- Your Password here
    CString mArrDate("12/04/2007");//<-------- Your user ID here
    CString mDepDate("12/05/2007");//<-------- Your user ID here


    BSTR bsPW = mPass.AllocSysString();
    BSTR bsUser=mUser.AllocSysString();

    BSTR bsCity = mCity.AllocSysString();
    BSTR bsArrDate = mArrDate.AllocSysString();
    BSTR bsDepDate = mDepDate.AllocSysString();

    CString mStr;
    HRESULT hr1 ;

    hr1 = CoInitialize(NULL);
    if(!SUCCEEDED(hr1))
        return ;

    hr1 = CoCreateInstance (CLSID_InternetExplorer, 
        NULL, CLSCTX_LOCAL_SERVER, 
        IID_IWebBrowser2, (LPVOID *)&m_pBrowser); 
        //Create an Instance of web browser

    if(hr1==S_OK)
    {
        VARIANT_BOOL pBool=true;
        //Commentout this line if you dont 
        //want the browser to be displayed
        m_pBrowser->put_Visible( pBool ) ;
        //the yahoo mail site
        //COleVariant vaURL("C:\\Saini\\MyPar\\test.html") ;
		COleVariant vaURL("http://www.bestwestern.com/");
        COleVariant null; 
        //Open the mail login page
        m_pBrowser->Navigate2(vaURL,null,null,null,null) ;

        //This while loop maks sure that the page 
        //is fully loaded before we go to the next page
        while(!m_bReady) 
        {
            m_pBrowser->get_StatusText(&bsStatus);
            mStr=bsStatus;
            if(mStr=="Done")m_bReady=1;
        }

        IDispatch* pDisp;
        //Get the underlying document object of the browser
        hr1=m_pBrowser->get_Document(&pDisp);

        if (pDisp != NULL )
        {
            IHTMLDocument2* pHTMLDocument2;
            HRESULT hr;
            hr = pDisp->QueryInterface( IID_IHTMLDocument2,
            (void**)&pHTMLDocument2 );
            //Ask for an HTMLDocument2 interface

            if (hr == S_OK)
            {
                //Enumerate the HTML elements
                IHTMLElementCollection* pColl = NULL;
                hr = pHTMLDocument2->get_all( &pColl );
                if (hr == S_OK && pColl != NULL)
                {
                    LONG celem;
                    //Find the count of the elements
                    hr = pColl->get_length( &celem );
                    if ( hr == S_OK )
                    {
                        //Loop through each elment
                        for ( int i=0; i< celem; i++ )
                        {
                            VARIANT varIndex;
                            varIndex.vt = VT_UINT;
                            varIndex.lVal = i;
                            VARIANT var2;
                            VariantInit( &var2 );
                            IDispatch* pDisp; 
                            hr = pColl->item( varIndex, 
                                var2, &pDisp );//Get an element

                            if ( hr == S_OK )
                            {
                                IHTMLElement* pElem;
                                hr = pDisp->QueryInterface( 
                                //Ask for an HTMLElemnt interface
                                    IID_IHTMLElement,
                                    (void **)&pElem);
                                if ( hr == S_OK )
                                {
                                    BSTR bstr;
                                    //Get the tag name for the element
                                    hr = pElem->get_tagName(&bstr);
                                    CString strTag; 
                                    strTag = bstr;
                                    //We need to check for 
                                    //input elemnt on login screen
                                    IHTMLInputTextElement* pUser;
                                    hr = pDisp->QueryInterface(
                                        IID_IHTMLInputTextElement, 
                                        (void **)&pUser );

                                    if ( hr == S_OK )
                                    {
                                        pUser->get_name(&bstr);
                                        mStr=bstr;
										  AfxMessageBox(mStr);
                                        if(mStr=="city"){ 
                                        //Is this a User Id frield
                                            pUser->put_value(bsCity);
											AfxMessageBox("bsCity done");
										}
                                            //Paste the User Id
                                        else if(mStr=="arrDate"){
                                        //Or, is this a password field
                                            pUser->put_value(bsArrDate);
											AfxMessageBox("bsArrDate done");
										}
                                            //Paste your password 
                                            //into the field 
										else if(mStr=="depDate"){
											 pUser->put_value(bsDepDate);
											 AfxMessageBox("bsArrDate done");
										}									

                                        pUser->Release();
                                    }
									IHTMLSelectElement *Combo;
									 hr = pDisp->QueryInterface(
                                            IID_IHTMLSelectElement, 
                                           (void **)&Combo);
										  if ( hr == S_OK )
										  {
											  Combo->get_name(&bstr);
											  mStr = bstr;
											 //if(mStr=="selectHotelForm"){											 
											  AfxMessageBox(mStr);
											  //pForm->submit();
											  //break;
											  //}
										 }
                                    //else{
                                        //IHTMLImgElement* pButton;
										IHTMLFormElement * pForm;										
										 hr = pDisp->QueryInterface(
                                            IID_IHTMLFormElement, 
                                           (void **)&pForm);
										  if ( hr == S_OK )
										  {
											  pForm->get_name(&bstr);
											  mStr = bstr;
											 if(mStr=="selectHotelForm"){											 
											  AfxMessageBox(mStr);
											  //pForm->submit();
											  //break;
											  }
										 }

                                        //If not Input field, 
                                        //is this a submit button?
                                        hr = pDisp->QueryInterface(
                                            IID_IHTMLImgElement, 
                                            (void **)&pButton);
                                        
                                        if ( hr == S_OK )
                                        {
											BSTR bstr;
											CString strTag;
											pButton->get_src(&bstr);
											mStr=bstr;
											if(mStr.Find("btn-findhotel.gif") > 0)
											//if(mStr == "IdTestBtn")
											{
												pElem->click();
											}
											AfxMessageBox(mStr);
                                            //We will submit the form that 
                                            //contains the button 
                                            //than clicking it
                                            //IHTMLFormElement* pForm;
                                            //This will send the all the 
                                            //information in correct format
                                            hr=pButton->get_form(&pForm);
                                            if ( hr == S_OK )
                                            {
                                                //Submit the form
                                                pForm->submit();
                                                //Now we dont have to see 
                                                //other elements, 
                                                //stop looping.
                                                i=celem;
                                                pForm->Release();
                                            }
                                            pButton->Release();
                                        }
                                    //}
                                    pElem->Release();
                                }
                                pDisp->Release();
                            }
                        }
                    }
                    pColl->Release();
                }
                pHTMLDocument2->Release();
                //For the next page open a fresh document
            }
            pDisp->Release();
        }
    }

    //Lets change the staus text, so as to 
    //make sure that the next page is loaded
    CString statustext="OK"; 
    m_pBrowser->put_StatusText(statustext.AllocSysString());
    m_bReady=0;

    while(!m_bReady)
    {
        m_pBrowser->get_StatusText(&bsStatus);
        mStr=bsStatus;
        if(mStr=="Done")m_bReady=1;
    } //Ok, next page that is Inbox is loaded
}

*/

/*
void CMyParDlg::OnStart() 
{
	// TODO: Add your control notification handler code here
	BSTR bsStatus;
    m_bReady=0;

    CString mPass("*****"); //<-------- Your Password here
    CString mUser("*****");//<-------- Your user ID here
	//London
    CString mCity("Paris"); //<-------- Your Password here
    CString mArrDate("12//04//2007");//<-------- Your user ID here
    CString mDepDate("12//5//2007");//<-------- Your user ID here


    BSTR bsPW = mPass.AllocSysString();
    BSTR bsUser=mUser.AllocSysString();

    BSTR bsCity = mCity.AllocSysString();
    BSTR bsArrDate = mArrDate.AllocSysString();
    BSTR bsDepDate = mDepDate.AllocSysString();

    CString mStr;
    HRESULT hr1 ;

    hr1 = CoInitialize(NULL);
    if(!SUCCEEDED(hr1))
        return ;

    hr1 = CoCreateInstance (CLSID_InternetExplorer, 
        NULL, CLSCTX_LOCAL_SERVER, 
        IID_IWebBrowser2, (LPVOID *)&m_pBrowser); 
        //Create an Instance of web browser

    if(hr1==S_OK)
    {
        VARIANT_BOOL pBool=true;
        //Commentout this line if you dont 
        //want the browser to be displayed
        m_pBrowser->put_Visible( pBool ) ;
        //the yahoo mail site
        COleVariant vaURL("http://www.bestwestern.com/") ;
        COleVariant null; 
        //Open the mail login page
        m_pBrowser->Navigate2(vaURL,null,null,null,null) ;

        //This while loop maks sure that the page 
        //is fully loaded before we go to the next page
        while(!m_bReady) 
        {
            m_pBrowser->get_StatusText(&bsStatus);
            mStr=bsStatus;
            if(mStr=="Done")m_bReady=1;
        }

        IDispatch* pDisp;
        //Get the underlying document object of the browser
        hr1=m_pBrowser->get_Document(&pDisp);

        if (pDisp != NULL )
        {
            IHTMLDocument2* pHTMLDocument2;
            HRESULT hr;
            hr = pDisp->QueryInterface( IID_IHTMLDocument2,
            (void**)&pHTMLDocument2 );
            //Ask for an HTMLDocument2 interface

            if (hr == S_OK)
            {
                //Enumerate the HTML elements
                IHTMLElementCollection* pColl = NULL;
                hr = pHTMLDocument2->get_all( &pColl );
                if (hr == S_OK && pColl != NULL)
                {
                    LONG celem;
                    //Find the count of the elements
                    hr = pColl->get_length( &celem );
                    if ( hr == S_OK )
                    {
                        //Loop through each elment
                        for ( int i=0; i< celem; i++ )
                        {
                            VARIANT varIndex;
                            varIndex.vt = VT_UINT;
                            varIndex.lVal = i;
                            VARIANT var2;
                            VariantInit( &var2 );
                            IDispatch* pDisp; 
                            hr = pColl->item( varIndex, 
                                var2, &pDisp );//Get an element

                            if ( hr == S_OK )
                            {
                                IHTMLElement* pElem;
                                hr = pDisp->QueryInterface( 
                                //Ask for an HTMLElemnt interface
                                    IID_IHTMLElement,
                                    (void **)&pElem);
                                if ( hr == S_OK )
                                {
                                    BSTR bstr;
                                    //Get the tag name for the element
                                    hr = pElem->get_tagName(&bstr);
                                    CString strTag; 
                                    strTag = bstr;
                                    //We need to check for 
                                    //input elemnt on login screen
                                    IHTMLInputTextElement* pUser;
                                    hr = pDisp->QueryInterface(
                                        IID_IHTMLInputTextElement, 
                                        (void **)&pUser );

                                    if ( hr == S_OK )
                                    {
                                        pUser->get_name(&bstr);
                                        mStr=bstr;
										//  AfxMessageBox(mStr);
                                        if(mStr=="city"){ 
                                        //Is this a User Id frield
                                            pUser->put_value(bsCity);
											//AfxMessageBox("bsCity done");
										}
                                            //Paste the User Id
                                        else if(mStr=="arrDate"){
                                        //Or, is this a password field
                                            pUser->put_value(bsArrDate);
											//AfxMessageBox("bsArrDate done");
										}
                                            //Paste your password 
                                            //into the field 
										else if(mStr=="depDate"){
											 pUser->put_value(bsDepDate);
											 //AfxMessageBox("bsArrDate done");
										}

                                        pUser->Release();
                                    }
                                    else{
                                        IHTMLInputButtonElement* pButton;
										//IHTMLFormElement * pForm;
										 //hr = pDisp->QueryInterface(
                                           // IID_IHTMLFormElement, 
                                           // (void **)&pForm);
										 // if ( hr == S_OK )
										 // {
											// pForm->submit();											 
										 //}

                                        //If not Input field, 
                                        //is this a submit button?
                                        hr = pDisp->QueryInterface(
                                            IID_IHTMLInputButtonElement, 
                                            (void **)&pButton);
                                        if ( hr == S_OK )
                                        {
                                            //We will submit the form that 
                                            //contains the button 
                                            //than clicking it
                                            IHTMLFormElement* pForm;
                                            //This will send the all the 
                                            //information in correct format
                                            hr=pButton->get_form(&pForm);
                                            if ( hr == S_OK )
                                            {
                                                //Submit the form
                                                pForm->submit();
                                                //Now we dont have to see 
                                                //other elements, 
                                                //stop looping.
                                                i=celem;
                                                pForm->Release();
                                            }
                                            pButton->Release();
                                        }
                                    }
                                    pElem->Release();
                                }
                                pDisp->Release();
                            }
                        }
                    }
                    pColl->Release();
                }
                pHTMLDocument2->Release();
                //For the next page open a fresh document
            }
            pDisp->Release();
        }
    }

    //Lets change the staus text, so as to 
    //make sure that the next page is loaded
    CString statustext="OK"; 
    m_pBrowser->put_StatusText(statustext.AllocSysString());
    m_bReady=0;

    while(!m_bReady)
    {
        m_pBrowser->get_StatusText(&bsStatus);
        mStr=bsStatus;
        if(mStr=="Done")m_bReady=1;
    } //Ok, next page that is Inbox is loaded
	//MoreSearchOptions("More Search Options");
	MoreSearchOptions("advSearchOptions");
	
}
*/
void CMyParDlg::MoreSearchOptions(CString sLink)
{

	BSTR bsStatus;
	CString mStr,mLocation;
	m_bReady=0;
	HRESULT hr1;

	IDispatch* pDisp;
	hr1=m_pBrowser->get_Document(&pDisp);	//Again get the document object
	
	if (pDisp != NULL )
	{
		IHTMLDocument2* pHTMLDocument2;
		HRESULT hr;
		hr = pDisp->QueryInterface( IID_IHTMLDocument2,
			(void**)&pHTMLDocument2 );
		if (hr == S_OK)
		{
			IHTMLElementCollection* pColl = NULL;
			
			hr = pHTMLDocument2->get_all( &pColl );
			if (hr == S_OK && pColl != NULL)
			{
                LONG celem;
                hr = pColl->get_length( &celem );
				
                if ( hr == S_OK )
                {
                    for ( int i=0; i< celem; i++ )
                    {
                        VARIANT varIndex;
                        varIndex.vt = VT_UINT;
                        varIndex.lVal = i;
                        VARIANT var2;
                        VariantInit( &var2 );
                        IDispatch* pDisp; 
						
                        hr = pColl->item( varIndex, var2, &pDisp );
                        if ( hr == S_OK )
                        {
                            IHTMLElement* pElem;
							
                            hr = pDisp->QueryInterface(
                                IID_IHTMLElement,
                                (void **)&pElem);
                            if ( hr == S_OK)
                            {
								IHTMLAnchorElement* pLink;//Look for Anchor element since "Inbox" has a hyper link associated with it
								
								hr = pDisp->QueryInterface(
									IID_IHTMLAnchorElement,
									(void **)&pLink);
								if ( hr == S_OK)
								{
									BSTR bstr;
									hr = pLink->get_href(&bstr);//Get the HREF value
									if(hr == S_OK){
										CString strTag; 
										strTag = bstr;
										//AfxMessageBox(strTag);
										
										if(strTag.Find(sLink)>=0 ){//Does that contain the keywords of a proper Inbox link? 
											pElem->click();	//If so , click on the link
											i=celem;	//Quit searching for other links
										}
									}
									pLink->Release();
								}
								pElem->Release();
							}
							pDisp->Release();
                        }
                    }
					pColl->Release();
				}
                
            }
            pHTMLDocument2->Release();
		}
		pDisp->Release();
	}
	CString statustext="OK";	//Change Status text again
	m_pBrowser->put_StatusText(statustext.AllocSysString());
	m_bReady=0;	
	while(!m_bReady)
	{
		m_pBrowser->get_StatusText(&bsStatus);
		mStr=bsStatus;
		if(mStr=="Done")m_bReady=1;
	}		//Ok, mail list loaded, get each mail

	while(m_bNextPage)
	{
		//AfxMessageBox("Browsing Next Page");
		GoToNextPage("next.gif");
	}
	AfxMessageBox("Completed!");
}

void CMyParDlg::GoToNextPage(CString sLink)
{
	BSTR bsStatus;
	CString mStr,mLocation;
	m_bReady=0;
	HRESULT hr1;

	IDispatch* pDisp;
	hr1=m_pBrowser->get_Document(&pDisp);	//Again get the document object
	
	if (pDisp != NULL )
	{
		IHTMLDocument2* pHTMLDocument2;
		HRESULT hr;
		hr = pDisp->QueryInterface( IID_IHTMLDocument2,
			(void**)&pHTMLDocument2 );
		if (hr == S_OK)
		{
			IHTMLElementCollection* pColl = NULL;
			
			hr = pHTMLDocument2->get_all( &pColl );
			if (hr == S_OK && pColl != NULL)
			{
                LONG celem;
                hr = pColl->get_length( &celem );
				
                if ( hr == S_OK )
                {
                    for ( int i=0; i< celem; i++ )
                    {
                        VARIANT varIndex;
                        varIndex.vt = VT_UINT;
                        varIndex.lVal = i;
                        VARIANT var2;
                        VariantInit( &var2 );
                        IDispatch* pDisp; 
						
                        hr = pColl->item( varIndex, var2, &pDisp );
                        if ( hr == S_OK )
                        {
                            IHTMLElement* pElem;
							
                            hr = pDisp->QueryInterface(
                                IID_IHTMLElement,
                                (void **)&pElem);
                            if ( hr == S_OK)
                            {
								IHTMLImgElement* pLink;//Look for Anchor element since "Inbox" has a hyper link associated with it
								
								hr = pDisp->QueryInterface(
									IID_IHTMLImgElement,
									(void **)&pLink);
								if ( hr == S_OK)
								{
									BSTR bstr;
									hr = pLink->get_href(&bstr);//Get the HREF value
									//hr = pLink->get_name(&bstr);//Get the HREF value
									if(hr == S_OK){
										CString strTag; 
										strTag = bstr;
										//AfxMessageBox(strTag);
										
										if(strTag.Find(sLink)>=0 ){//Does that contain the keywords of a proper Inbox link? 
											pElem->click();	//If so , click on the link
											i=celem;	//Quit searching for other links
											m_bNextPage = TRUE;
										}
										else
										{
											m_bNextPage = FALSE;
										}
									}
									pLink->Release();
								}
								pElem->Release();
							}
							pDisp->Release();
                        }
                    }
					pColl->Release();
				}
                
            }
            pHTMLDocument2->Release();
		}
		pDisp->Release();
	}
	CString statustext="OK";	//Change Status text again
	m_pBrowser->put_StatusText(statustext.AllocSysString());
	m_bReady=0;	
	while(!m_bReady)
	{
		m_pBrowser->get_StatusText(&bsStatus);
		mStr=bsStatus;
		if(mStr=="Done")m_bReady=1;
	}		//Ok, mail list loaded, get each mail
}

void CMyParDlg::FillSearchWithin()
{
	m_cbSearchWithin.AddString("5");
	m_cbSearchWithin.AddString("10");
	m_cbSearchWithin.AddString("25");
	m_cbSearchWithin.AddString("30");
	m_cbSearchWithin.AddString("40");
	m_cbSearchWithin.AddString("50");
}

void CMyParDlg::FillStateProv()
{
	m_cbStateProv.AddString("AE (Area Europe)");
	m_cbStateProv.AddString("Alabama");m_cbStateProv.AddString("Alaska");
	m_cbStateProv.AddString("AP (Area Pacific)");m_cbStateProv.AddString("Arizona");
	m_cbStateProv.AddString("Arkansas");m_cbStateProv.AddString("California");
	m_cbStateProv.AddString("Colorado");m_cbStateProv.AddString("Connecticut");
	m_cbStateProv.AddString("Delaware");m_cbStateProv.AddString("District of Columbia");
	m_cbStateProv.AddString("Florida");m_cbStateProv.AddString("Georgia");
	m_cbStateProv.AddString("Hawaii");m_cbStateProv.AddString("Idaho");
	m_cbStateProv.AddString("Illinois");m_cbStateProv.AddString("Indiana");
	m_cbStateProv.AddString("Iowa");m_cbStateProv.AddString("Kansas");
	m_cbStateProv.AddString("Kentucky");m_cbStateProv.AddString("Louisiana");
	m_cbStateProv.AddString("Maine");m_cbStateProv.AddString("Maryland");
	m_cbStateProv.AddString("Massachusetts");m_cbStateProv.AddString("Michigan");
	m_cbStateProv.AddString("Minnesota");m_cbStateProv.AddString("Mississippi");
	m_cbStateProv.AddString("Missouri");m_cbStateProv.AddString("Montana");
	m_cbStateProv.AddString("Nebraska");m_cbStateProv.AddString("Nevada");
	m_cbStateProv.AddString("New Hampshire");m_cbStateProv.AddString("New Jersey");
	m_cbStateProv.AddString("New Mexico");m_cbStateProv.AddString("New York");
	m_cbStateProv.AddString("North Carolina");m_cbStateProv.AddString("North Dakota");
	m_cbStateProv.AddString("Ohio");m_cbStateProv.AddString("Oklahoma");
	m_cbStateProv.AddString("Oregon");m_cbStateProv.AddString("Pennsylvania");
	m_cbStateProv.AddString("Puerto Rico");m_cbStateProv.AddString("Rhode Island");
	m_cbStateProv.AddString("South Carolina");m_cbStateProv.AddString("South Dakota");
	m_cbStateProv.AddString("Tennessee");m_cbStateProv.AddString("Texas");
	m_cbStateProv.AddString("Utah");m_cbStateProv.AddString("Vermont");
	m_cbStateProv.AddString("Virginia");m_cbStateProv.AddString("Washington");
	m_cbStateProv.AddString("West Virginia");m_cbStateProv.AddString("Wisconsin");
	m_cbStateProv.AddString("Wyoming");m_cbStateProv.AddString("Alberta");
	m_cbStateProv.AddString("British Columbia");m_cbStateProv.AddString("Manitoba");
	m_cbStateProv.AddString("New Brunswick");m_cbStateProv.AddString("Newfoundland");
	m_cbStateProv.AddString("Northwest Territories");m_cbStateProv.AddString("Nova Scotia");
	m_cbStateProv.AddString("Nunavut");m_cbStateProv.AddString("Ontario");
	m_cbStateProv.AddString("Prince Edward Island");m_cbStateProv.AddString("Quebec");
	m_cbStateProv.AddString("Saskatchewan");m_cbStateProv.AddString("Yukon Territory");
}

void CMyParDlg::FillCountry()
{
	m_cbCountry.AddString("Canada");m_cbCountry.AddString("Algeria");
	m_cbCountry.AddString("Argentina");m_cbCountry.AddString("Australia");
	m_cbCountry.AddString("Austria");m_cbCountry.AddString("Bahamas");
	m_cbCountry.AddString("Bahrain");m_cbCountry.AddString("Barbados");
	m_cbCountry.AddString("Belgium");m_cbCountry.AddString("Brazil");
	m_cbCountry.AddString("British Ind. Ocean Territory");m_cbCountry.AddString("Bulgaria");
	m_cbCountry.AddString("Cameroon");m_cbCountry.AddString("Canada");
	m_cbCountry.AddString("China");m_cbCountry.AddString("Colombia");
	m_cbCountry.AddString("Costa Rica");m_cbCountry.AddString("Croatia");
	m_cbCountry.AddString("Curacao");m_cbCountry.AddString("Cyprus");
	m_cbCountry.AddString("Czech Republic");m_cbCountry.AddString("Denmark");
	m_cbCountry.AddString("Dominican Republic");m_cbCountry.AddString("Ecuador");
	m_cbCountry.AddString("Egypt");m_cbCountry.AddString("El Salvador");
	m_cbCountry.AddString("Estonia");m_cbCountry.AddString("Ethiopia");
	m_cbCountry.AddString("Fiji");m_cbCountry.AddString("Finland");
	m_cbCountry.AddString("France");m_cbCountry.AddString("Germany");
	m_cbCountry.AddString("Greece");m_cbCountry.AddString("Guam");
	m_cbCountry.AddString("Honduras");m_cbCountry.AddString("Hungary");
	m_cbCountry.AddString("Iceland");m_cbCountry.AddString("India");
	m_cbCountry.AddString("Indonesia");m_cbCountry.AddString("Ireland");
	m_cbCountry.AddString("Israel");m_cbCountry.AddString("Italy");
	m_cbCountry.AddString("Ivory Coast(Cote D'Ivoire)");m_cbCountry.AddString("Jamaica");
	m_cbCountry.AddString("Japan");m_cbCountry.AddString("Kenya");
	m_cbCountry.AddString("Kuwait");m_cbCountry.AddString("Lithuania");
	m_cbCountry.AddString("Luxembourg");m_cbCountry.AddString("Madagascar");
	m_cbCountry.AddString("Malaysia");m_cbCountry.AddString("Maldives");
	m_cbCountry.AddString("Malta");m_cbCountry.AddString("Mauritius");
	m_cbCountry.AddString("Mexico");m_cbCountry.AddString("Mongolia");
	m_cbCountry.AddString("Morocco");m_cbCountry.AddString("Netherlands");
	m_cbCountry.AddString("New Zealand");m_cbCountry.AddString("Nicaragua");
	m_cbCountry.AddString("Nigeria");m_cbCountry.AddString("Norway");
	m_cbCountry.AddString("Oman");m_cbCountry.AddString("Peru");
	m_cbCountry.AddString("Philippines");m_cbCountry.AddString("Poland");
	m_cbCountry.AddString("Portugal");m_cbCountry.AddString("Puerto Rico");
	m_cbCountry.AddString("Romania");m_cbCountry.AddString("Russian Federation");
	m_cbCountry.AddString("Saint Lucia");m_cbCountry.AddString("Saudi Arabia");
	m_cbCountry.AddString("Seychelles");m_cbCountry.AddString("Singapore");
	m_cbCountry.AddString("South Africa");m_cbCountry.AddString("South Korea");
	m_cbCountry.AddString("Spain");m_cbCountry.AddString("Sri Lanka");
	m_cbCountry.AddString("Sudan");m_cbCountry.AddString("Sweden");
	m_cbCountry.AddString("Switzerland");m_cbCountry.AddString("Taiwan");
	m_cbCountry.AddString("Thailand");m_cbCountry.AddString("Trinidad/Tobago");
	m_cbCountry.AddString("Tunisia");m_cbCountry.AddString("Turkey");
	m_cbCountry.AddString("U.A.E");m_cbCountry.AddString("United Kingdom");
	m_cbCountry.AddString("Uruguay");m_cbCountry.AddString("USA");
	m_cbCountry.AddString("Venezuela");m_cbCountry.AddString("Vietnam");
}

void CMyParDlg::FillCheckinDay()
{
	m_cbCheckinDay.AddString("1");m_cbCheckinDay.AddString("2");
	m_cbCheckinDay.AddString("3");m_cbCheckinDay.AddString("4");
	m_cbCheckinDay.AddString("5");m_cbCheckinDay.AddString("6");
	m_cbCheckinDay.AddString("7");m_cbCheckinDay.AddString("8");
	m_cbCheckinDay.AddString("9");m_cbCheckinDay.AddString("10");
	m_cbCheckinDay.AddString("11");m_cbCheckinDay.AddString("12");
	m_cbCheckinDay.AddString("13");m_cbCheckinDay.AddString("14");
	m_cbCheckinDay.AddString("15");m_cbCheckinDay.AddString("16");
	m_cbCheckinDay.AddString("17");m_cbCheckinDay.AddString("18");
	m_cbCheckinDay.AddString("19");m_cbCheckinDay.AddString("20");
	m_cbCheckinDay.AddString("21");m_cbCheckinDay.AddString("22");
	m_cbCheckinDay.AddString("23");m_cbCheckinDay.AddString("24");
	m_cbCheckinDay.AddString("25");m_cbCheckinDay.AddString("26");
	m_cbCheckinDay.AddString("27");m_cbCheckinDay.AddString("28");
	m_cbCheckinDay.AddString("29");m_cbCheckinDay.AddString("30");
	m_cbCheckinDay.AddString("31");
}

void CMyParDlg::FillCheckinMonthYear()
{
	m_cbCheckinMonthYear.AddString("Dec 2007");m_cbCheckinMonthYear.AddString("Jan 2008");
	m_cbCheckinMonthYear.AddString("Feb 2008");m_cbCheckinMonthYear.AddString("Mar 2008");
	m_cbCheckinMonthYear.AddString("Apr 2008");m_cbCheckinMonthYear.AddString("May 2008");
	m_cbCheckinMonthYear.AddString("Jun 2008");m_cbCheckinMonthYear.AddString("Jul 2008");
	m_cbCheckinMonthYear.AddString("Sep 2008");m_cbCheckinMonthYear.AddString("Oct 2008");
	m_cbCheckinMonthYear.AddString("Nov 2008");m_cbCheckinMonthYear.AddString("Dec 2008");
}

void CMyParDlg::FillCheckoutDay()
{
	m_cbCheckoutDay.AddString("1");m_cbCheckoutDay.AddString("2");
	m_cbCheckoutDay.AddString("3");m_cbCheckoutDay.AddString("4");
	m_cbCheckoutDay.AddString("5");m_cbCheckoutDay.AddString("6");
	m_cbCheckoutDay.AddString("7");m_cbCheckoutDay.AddString("8");
	m_cbCheckoutDay.AddString("9");m_cbCheckoutDay.AddString("10");
	m_cbCheckoutDay.AddString("11");m_cbCheckoutDay.AddString("12");
	m_cbCheckoutDay.AddString("13");m_cbCheckoutDay.AddString("14");
	m_cbCheckoutDay.AddString("15");m_cbCheckoutDay.AddString("16");
	m_cbCheckoutDay.AddString("17");m_cbCheckoutDay.AddString("18");
	m_cbCheckoutDay.AddString("19");m_cbCheckoutDay.AddString("20");
	m_cbCheckoutDay.AddString("21");m_cbCheckoutDay.AddString("22");
	m_cbCheckoutDay.AddString("23");m_cbCheckoutDay.AddString("24");
	m_cbCheckoutDay.AddString("25");m_cbCheckoutDay.AddString("26");
	m_cbCheckoutDay.AddString("27");m_cbCheckoutDay.AddString("28");
	m_cbCheckoutDay.AddString("29");m_cbCheckoutDay.AddString("30");
	m_cbCheckoutDay.AddString("31");
}

void CMyParDlg::FillCheckoutMonthYear()
{
	m_cbCheckoutMonthYear.AddString("Dec 2007");m_cbCheckoutMonthYear.AddString("Jan 2008");
	m_cbCheckoutMonthYear.AddString("Feb 2008");m_cbCheckoutMonthYear.AddString("Mar 2008");
	m_cbCheckoutMonthYear.AddString("Apr 2008");m_cbCheckoutMonthYear.AddString("May 2008");
	m_cbCheckoutMonthYear.AddString("Jun 2008");m_cbCheckoutMonthYear.AddString("Jul 2008");
	m_cbCheckoutMonthYear.AddString("Sep 2008");m_cbCheckoutMonthYear.AddString("Oct 2008");
	m_cbCheckoutMonthYear.AddString("Nov 2008");m_cbCheckoutMonthYear.AddString("Dec 2008");
}

void CMyParDlg::FillHotels()
{
	m_cbHotels.AddString("Hilton Hotels");m_cbHotels.AddString("All Hilton Family Hotels");
}

void CMyParDlg::FillGuestRooms()
{
	m_cbGuestRooms.AddString("1-4");
	m_cbGuestRooms.AddString("5");m_cbGuestRooms.AddString("6");
	m_cbGuestRooms.AddString("7");m_cbGuestRooms.AddString("8");
	m_cbGuestRooms.AddString("9");m_cbGuestRooms.AddString("10");
	m_cbGuestRooms.AddString("11");m_cbGuestRooms.AddString("12");
	m_cbGuestRooms.AddString("13");m_cbGuestRooms.AddString("14");
	m_cbGuestRooms.AddString("15");m_cbGuestRooms.AddString("16");
	m_cbGuestRooms.AddString("17");m_cbGuestRooms.AddString("18");
	m_cbGuestRooms.AddString("19");m_cbGuestRooms.AddString("20");
	m_cbGuestRooms.AddString("21");m_cbGuestRooms.AddString("22");
	m_cbGuestRooms.AddString("23");m_cbGuestRooms.AddString("24");
	m_cbGuestRooms.AddString("25");m_cbGuestRooms.AddString("26 or more");
}

AnswerRe: ?? Pin
Michael Schubert27-Feb-09 0:27
Michael Schubert27-Feb-09 0:27 
AnswerRe: ?? Pin
Rajesh R Subramanian27-Feb-09 3:19
professionalRajesh R Subramanian27-Feb-09 3:19 
AnswerRe: ?? Pin
Hamid_RT27-Feb-09 3:35
Hamid_RT27-Feb-09 3:35 
AnswerRe: ?? Pin
jeron127-Feb-09 4:17
jeron127-Feb-09 4:17 
Questionwhat can i use in place of GotoDlgCtrl in Form view? Pin
Le@rner26-Feb-09 23:31
Le@rner26-Feb-09 23:31 
AnswerRe: what can i use in place of GotoDlgCtrl in Form view? Pin
Iain Clarke, Warrior Programmer26-Feb-09 23:48
Iain Clarke, Warrior Programmer26-Feb-09 23:48 
GeneralRe: what can i use in place of GotoDlgCtrl in Form view? [modified] Pin
Le@rner27-Feb-09 1:01
Le@rner27-Feb-09 1:01 
AnswerRe: what can i use in place of GotoDlgCtrl in Form view? Pin
Roger Allen27-Feb-09 0:34
Roger Allen27-Feb-09 0:34 
GeneralRe: what can i use in place of GotoDlgCtrl in Form view? Pin
Le@rner27-Feb-09 1:02
Le@rner27-Feb-09 1:02 
Questionserial port programming using threads in c Pin
rao_abhilash26-Feb-09 23:11
rao_abhilash26-Feb-09 23:11 
AnswerRe: serial port programming using threads in c Pin
CPallini26-Feb-09 23:44
mveCPallini26-Feb-09 23:44 
AnswerRe: serial port programming using threads in c Pin
Iain Clarke, Warrior Programmer26-Feb-09 23:50
Iain Clarke, Warrior Programmer26-Feb-09 23:50 
AnswerRe: serial port programming using threads in c Pin
Stuart Dootson27-Feb-09 0:22
professionalStuart Dootson27-Feb-09 0:22 
AnswerRe: serial port programming using threads in c Pin
Jonathan Davies27-Feb-09 6:06
Jonathan Davies27-Feb-09 6:06 
QuestionRe: serial port programming using threads in c Pin
rao_abhilash27-Feb-09 17:45
rao_abhilash27-Feb-09 17:45 
AnswerRe: serial port programming using threads in c Pin
Jonathan Davies28-Feb-09 1:34
Jonathan Davies28-Feb-09 1:34 
QuestionGet USB Drive Letter size Pin
NewVC++26-Feb-09 22:57
NewVC++26-Feb-09 22:57 

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.