Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // SimpleTableEx.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // SimpleTableEx.h: header for CSimpleTableEx
  12. // derived from CSimpleTable. Only difference
  13. // is SetValue() overloaded for WCHAR *
  14. //
  15. // MODIFICATION HISTORY
  16. //
  17. // 01/26/1999 Original version.
  18. //
  19. //
  20. //////////////////////////////////////////////////////////////////////////////
  21. #if !defined(AFX_MYSIMPLETABLE_H__EEA1D7F0_B649_11D2_9E24_00C04F6EA5B6_INCLUDED)
  22. #define AFX_MYSIMPLETABLE_H__EEA1D7F0_B649_11D2_9E24_00C04F6EA5B6_INCLUDED
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. #include "precomp.hpp"
  27. #include "simTable.h"
  28. //////////////////////////////////////////////////////////////////////////////
  29. //
  30. // Class CSimpleTableEx
  31. //
  32. //////////////////////////////////////////////////////////////////////////////
  33. class CSimpleTableEx : public CSimpleTable
  34. {
  35. public:
  36. using CSimpleTable::SetValue;
  37. // set public a protected method from the super class
  38. template <>
  39. void SetValue(DBORDINAL nOrdinal, WCHAR *szValue)
  40. {
  41. wcscpy((WCHAR *)_GetDataPtr(nOrdinal), szValue);
  42. }
  43. HRESULT Attach(IRowset* pRowset);
  44. };
  45. #endif
  46. // !defined(AFX_MYSIMPLETABLE_H__EEA1D7F0_B649_11D2_9E24_00C04F6EA5B6_INCLUDED)