How to call a function present in a COM based DLL
Posted on 2003-02-25
I want to use a COM component known as DigiSign. Following is an extract of the help file.
About DigiSign 2.0
DigiSign implements the most popular message digest and checksum algorithms: SHA-1, SHA-256, SHA-384, SHA-512, MD5, MD2, RIPEMD160, CRC32 and ADLER32.
The VB Example that is given is as follows:
'DigiSign 2.0 VBScript Sample
'Create Hash Object
Set H = CreateObject ("DigiSign.Hash")
'Calculate the MD5 Signature of a string
S = H.CalculateStringDigest("This is our test string", 4)
MY QUESTION is how do we do the same in C++/VC++
1. GUID is not provided
2. No .h files are provided
3. The above code works properly in VB