home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / zkuste / vbasic / Data / Utils / XZipComp.exe / XceedEncoding.Cab / F112918_Encode.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-27  |  1.9 KB  |  72 lines

  1. #ifndef __ENCODE_H__
  2. #define __ENCODE_H__
  3.  
  4. /* Xceed Binary Encoding Library - Encode Sample Application
  5.  * Copyright (c) 2001 Xceed Software Inc.
  6.  *
  7.  * [Encode.h]
  8.  *
  9.  * This console application shows how to encode a file, using different
  10.  * encoding methods. It specifically demonstrates:
  11.  *  - The ReadFile and ProcessFile methods.
  12.  *  - The EndOfLineType, MaxLineLength, EncodingFormat, 
  13.  *    DataFormating, HeaderDataForkLen and HeaderResourceForkLen properties 
  14.  *    from the various Encoding format interfaces.
  15.  *
  16.  * This file is part of the Xceed Binary Encoding Library sample 
  17.  * applications. The source code in this file is only intended as 
  18.  * a supplement to Xceed Binary Encoding Library's documentation, 
  19.  * and is provided "as is", without warranty of any kind, either 
  20.  * expressed or implied. 
  21.  */
  22.  
  23. //
  24. // The Visual C++ compiler will automatically generate wrapper classes 
  25. // around available interfaces found in this type library.
  26. //
  27.  
  28. #import "XceedBEN.dll" no_namespace named_guids
  29.  
  30. //
  31. // Enumerations
  32. //
  33.  
  34. //The different encoding methods supported by the Xceed Binary Encoding
  35. //library.
  36. enum EEncodingMethod
  37. {
  38.   emUUEncode = 0,
  39.   emXXEncode = 1,
  40.   emBase64 = 2,
  41.   emHexadecimal = 3,
  42.   emQuotedPrintable = 4,
  43.   emBinHex = 5,
  44. };
  45.  
  46. //
  47. // Data types
  48. //
  49.  
  50. //Structure that will be used in an array providing a correspondence
  51. //table between the possible encoding methods passed on the command line
  52. //and their value in the enumeration EEncodingMethod above.
  53. struct SEncodingMethod
  54. {
  55.   const char*       pszCommandLine;
  56.   EEncodingMethod   eMethod;
  57. };
  58.  
  59.  
  60. //
  61. // Prototypes
  62. //
  63.  
  64. void ShowHelp();
  65.  
  66. bool ExtractParameters( int argc, char* argv[],
  67.                         IXceedBinaryEncodingPtr piEncode,
  68.                         _bstr_t& bstrInputFileName,
  69.                         _bstr_t& bstrOutputFileName );
  70.  
  71. #endif // __ENCODE_H__
  72.