⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serverobject.h

📁 vc++6.0开发网络典型应用实例导航 1. 本光盘提供了本书中所有的实例源程序文件。 2. 附录文件夹下是Winsock 函数参考以及错误码列表
💻 H
字号:
#if !defined(AFX_SERVEROBJECT_H__7C31BB89_82B3_4A49_B4CA_C9037BEEFE00__INCLUDED_)
#define AFX_SERVEROBJECT_H__7C31BB89_82B3_4A49_B4CA_C9037BEEFE00__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CServerObject : public CCmdTarget
{
	DECLARE_DYNCREATE(CServerObject)

	CServerObject();           // protected constructor used by dynamic creation
	virtual ~CServerObject();

// Attributes
public:

// Operations
public:
	CString GetCurrentDirectory() { return m_strCurrentDirectory; }
	void SetCurrentDirectory(LPCTSTR lpszDirectory);

	CString GetRootDirectory() { return m_strRootDirectory; }
	void SetRootDirectory(LPCTSTR lpszDirectory);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CServerObject)
	public:
	virtual void OnFinalRelease();
	//}}AFX_VIRTUAL

// Implementation
protected:
	CString m_strRootDirectory;
	CString m_strCurrentDirectory;

	// Generated message map functions
	//{{AFX_MSG(CServerObject)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CServerObject)
	afx_msg BSTR URLEncode(LPCTSTR lpszURL);
	afx_msg LPDISPATCH CreateObjectEx(LPCTSTR lpszProgID);
	afx_msg BSTR MapPath(LPCTSTR lpszLogicalPath);
	afx_msg BSTR HTMLEncode(LPCTSTR lpszIn);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_SERVEROBJECT_H__7C31BB89_82B3_4A49_B4CA_C9037BEEFE00__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -