CryptoSys PKI Pro Manual

Using with ANSI C

To use the "core" ANSI C interface, 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 native API functions from a Windows native 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 most functions.

The "core" VB6/VBA functions and ANSI 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.

The include file diCrPKI.h and distribution test code will be found in the C sub-directory of the installation folder, typically C:\Program Files (x86)\CryptoSysPKI\C (or C:\Program Files\CryptoSysPKI\C on a 32-bit machine). To find the installation folder, use Start > All Programs > CryptoSysPKI > CryptoSys PKI Reference Files.

[PREV: Notes on VBA wrapper functions...]   [Contents]   [Index]   
   [NEXT: Type Conversions...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.