To use with a C or C++ program, include the diCrPKI.h file with your source code
and link with the diCrPKI.lib library. The only non-ANSI C requirement
is that your complier supports the __stdcall
calling convention to call Win32 API functions from a Win32 DLL.
The sample C code PKI_Examples.c provided in the distribution carries out a variety
of tests using known test vectors. There are examples given for each function.
You'll also realise that this manual is written primarily for Visual Basic programmers. Apologies, sort of, because we know you can easily work what to do from the examples given in the sample C programs and the rest of this manual.
The VB6/VBA functions and C/C++ functions are identical in form. The function names are identical, the arguments are the same (even though we may have used different parameter names in the VB and C syntaxes), and the same warnings given in the Remarks section apply to both. Just be careful to add an extra character for output string types in C.