PARAMS.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- #ifndef __PARAMS_H
- #define __PARAMS_H
- class ATL_NO_VTABLE CParameter
- {
- public:
- CParameter(DWORD iParam) { m_iParam = iParam; }
- DWORD Index() { return m_iParam; }
- virtual BOOL FToVariant(VARIANT& varDest) = 0;
- virtual ~CParameter()
- {
- }
- DWORD m_iParam;
- };
- #if 0
- class CBoundParam : public CParameter
- {
- public:
- CBoundParam();
- CBoundParam(SWORD fParamType, SWORD fCType, SWORD fSqlType,
- UDWORD cbColDef, SWORD ibScale, PTR rgbValue,
- SDWORD cbValueMax, SDWORD* pcbValue, DWORD iParam);
- virtual ~CBoundParam();
- virtual BOOL FToVariant(VARIANT& varDest);
- SWORD m_fParamType;
- SWORD m_fCType;
- SWORD m_fSqlType;
- UDWORD m_cbColDef;
- SWORD m_ibScale;
- PTR m_rgbValue;
- SDWORD m_cbValueMax;
- SDWORD* m_pcbValue;
- };
- #endif
- class CByValParameter : public CParameter
- {
- public:
- CByValParameter(DWORD iParam, LPTSTR szParam) : CParameter(iParam)
- {
- m_szParameter = szParam;
- }
- virtual BOOL FToVariant(VARIANT& varDest);
- virtual ~CByValParameter();
- LPTSTR m_szParameter;
- };
- #endif //__PARAMS_H