requestobject.h

来自「vc++6.0开发网络典型应用实例导航 1. 本光盘提供了本书中所有的实例源」· C头文件 代码 · 共 66 行

H
66
字号
#if !defined(AFX_REQUESTOBJECT_H__0D48B9AA_12DE_46F3_8DB5_FB5D98070B2B__INCLUDED_)
#define AFX_REQUESTOBJECT_H__0D48B9AA_12DE_46F3_8DB5_FB5D98070B2B__INCLUDED_

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

#include "CookieCollection.h"

class CRequestObject : public CCmdTarget
{
	DECLARE_DYNCREATE(CRequestObject)

	CRequestObject();           // protected constructor used by dynamic creation
	virtual ~CRequestObject();
// Attributes
public:

// Operations
public:
	void AddQueryStringKey(LPCTSTR lpszKey, LPCTSTR lpszValue);
	void AddFormKey(LPCTSTR lpszKey, LPCTSTR lpszValue);
	void AddServerVariablesKey(LPCTSTR lpszKey, LPCTSTR lpszValue);
	void AddCookiesKey(LPCTSTR lpszName, LPCTSTR lpszValue);

	CCookieCollection m_CookieCollection;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRequestObject)
	public:
	//}}AFX_VIRTUAL

// Implementation
protected:
	
	IDictionaryPtr m_pQueryStringCollection;
	IDictionaryPtr m_pFormCollection;
	IDictionaryPtr m_pServerVariablesCollection;

	//IDictionaryPtr m_pCookiesCollection;
	
	// Generated message map functions
	//{{AFX_MSG(CRequestObject)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CRequestObject)
	afx_msg LPDISPATCH QueryString();
	afx_msg LPDISPATCH Form();
	afx_msg LPDISPATCH ServerVariables();
	afx_msg LPDISPATCH Cookies();
	afx_msg BSTR GetItem(LPCTSTR lpszVar);
	//}}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_REQUESTOBJECT_H__0D48B9AA_12DE_46F3_8DB5_FB5D98070B2B__INCLUDED_)

⌨️ 快捷键说明

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