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

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