Encoding.h 770 B

123456789101112131415161718192021222324252627
  1. //------------------------------------------------------------------------------
  2. //
  3. // Copyright (C) Streamlet. All rights reserved.
  4. //
  5. // File Name: Encoding.h
  6. // Author: Streamlet
  7. // Create Time: 2010-09-15
  8. // Description:
  9. //
  10. // Version history:
  11. //
  12. //
  13. //
  14. //------------------------------------------------------------------------------
  15. #ifndef __ENCODING_H_B23F48D1_9E5C_435B_9BDA_B6370F9BAD62_INCLUDED__
  16. #define __ENCODING_H_B23F48D1_9E5C_435B_9BDA_B6370F9BAD62_INCLUDED__
  17. #include <Windows.h>
  18. #include <atlstr.h>
  19. CStringW ANSIToUCS2(const CStringA &strANSI, UINT uCodePage = CP_ACP);
  20. CStringA UCS2ToANSI(const CStringW &strUCS2, UINT uCodePage = CP_ACP);
  21. #endif // #ifndef __ENCODING_H_B23F48D1_9E5C_435B_9BDA_B6370F9BAD62_INCLUDED__