Click here to Skip to main content
15,885,933 members
Articles / Desktop Programming / MFC

Internet dialup program

Rate me:
Please Sign up or sign in to vote.
3.12/5 (16 votes)
2 Dec 1999 293.4K   10.7K   45  
A dial-up dialer for connection to Internet providers
///////////////////////////////////////////////////////////////////////
// If this program works, it was written by Alexander Fedorov.
// If not, I don't know who wrote it.
// mailto:lamer2000@hotmail.com
// Home Page: http://members.xoom.com/lamer2000/
// This file is part of Alexf Dialer.
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
///////////////////////////////////////////////////////////////////////

#if !defined(AFX_PAGE2_H__298DD350_F00C_11D2_9864_D86B908C7AFE__INCLUDED_)
#define AFX_PAGE2_H__298DD350_F00C_11D2_9864_D86B908C7AFE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Page2.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPage2 dialog

class CPage2 : public CPropertyPage
{
	DECLARE_DYNCREATE(CPage2)

public:
	CString GetPassword(BOOL b = FALSE);
	BOOL bWindowActivated;
	static CRITICAL_SECTION sCriticalSection;
	static CPage2 * ziz;
	BOOL bThreadExitImmediately;
	int iThreadWorkingNow;
	static UINT RunPrograms(LPVOID lpThreadParameter);
	int RunConditionS2I(CString s);
	CString RunConditionI2S(int i);
	BOOL LoadPrograms(CString Provider);
	BOOL InitPropertyPage();
	BOOL Reload();
	BOOL SaveCurrentUNP();
	BOOL LoadCurrentUNP();
	CPage2();
	~CPage2();

// Dialog Data
	//{{AFX_DATA(CPage2)
	enum { IDD = IDD_DIALOG2 };
	CListCtrl	m_listProgs;
	CString	m_sUserName;
	CString	m_sPassword;
	CString	m_sSoundLogin;
	CString	m_sSoundLogout;
	CString	m_sConnectionName;
	BOOL	m_bHidePassword;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPage2)
	public:
	virtual BOOL OnSetActive();
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CPage2)
	virtual BOOL OnInitDialog();
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnLoadLogin();
	afx_msg void OnLoadLogout();
	afx_msg void OnTestLogin();
	afx_msg void OnTestLogout();
	afx_msg void OnKillfocusEditPassword();
	afx_msg void OnKillfocusEditSoundLogin();
	afx_msg void OnKillfocusEditSoundLogout();
	afx_msg void OnKillfocusEditUserName();
	afx_msg void OnButtonProgAdd();
	afx_msg void OnButtonProgEdit();
	afx_msg void OnButtonProgDel();
	afx_msg void OnHidepwd();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PAGE2_H__298DD350_F00C_11D2_9864_D86B908C7AFE__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer SEO
Russian Federation Russian Federation
AlexF's Blog in Russian
Owner Spy competition analysis
Rating Burner Rating of blogs

Comments and Discussions