CryptoSys PKI Toolkit Manual

Compiling with C

The Toolkit has been tested with Microsoft Visual C++ (versions 5, 6, 7, 8 and 9) and Borland C++Builder version 5.5.

Here is some minimal code:-

/* myprog.c */
#include <stdio.h>
#include "diCrPKI.h"
int main(void)
{
    long version;
    version = PKI_Version(NULL, NULL);
    printf("Version=%ld\n", version);
    return 0;
}

To compile with MSVC++:

cl myprog.c diCrPKI.lib

Running this program should result in

Version=350

where the actual number displayed depends on which version you have installed.

[HOME]   [NEXT: Using With Borland C++...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.