"Graham Bull" <calzakk@gmail.com> wrote in message news:c1ebcf460812190628p642b6c84g354510283bb43c23@mail.gmail.com...
> You need to use the Base??EncodeGetLength() functions first,
> allocate a buffer of the required size, then use the Base??Encode()
> function:
> const char* source = "...";
> unsigned long sourceSize = strlen( source );
> unsigned long size = Base32EncodeGetLength( sourceSize );
> char* dest = new char[ size+1 ]; //+1 for null terminator
> Base32Encode( dest, source, sourceSize );
 
Graham, thank you for helping me with this, works great!
 
Best Regards,
 
Jeff