Encode

The Encode method performs ASN encoding on a bit string stored in the COM object and returns the ASN encoded bit string. The bit string is first initialized and then set before being encoded.

[VB] BSTR Encode(
  long BitCount,  
  BSTR strBitString 
);
 
[JAVA] java.lang.String Encode(
  int BitCount,               
  java.lang.String strBitString  
);
 
[C++] HRESULT Encode(
  LONG BitCount,            // in
  BSTR strBitString,        // in
  BSTR * pstrBinary         // out
);
 

Parameters

[VB][JAVA][C++] BitCount
Specifies the size of the bit string.
[VB][JAVA][C++] strBitString
Specifies the bit string.
[C++] pstrBinary
Points to the return value. See Return Values.

Return Values

Returns the ASN encoded bit string.


© 1997 by Microsoft Corporation. All rights reserved.