CryptoSys API Library Manual

Using with COM/ASP

The file diCryptOCX.dll is a ActiveX wrapper for 32-bit platforms that provides an interface to most functions in the CryptoSys API. Strictly it's an ActiveX DLL, not an OCX, but we think three-letter acronyms with an "X" in them are cool.

The ActiveX DLL must be registered on the system. If not, you will receive a "Run-time error '429': ActiveX component can't create object" error. For more information, see the Installation section under the heading "Wrapper DLLs".

In a VB6 project set a reference to diCryptOCX.dll (Project>References>Browse...) then

Dim oGen = New diCryptoOCX.gen
Debug.Print "Version=" & oGen.Version

In a 32-bit Office VBA module

Dim oGen As Object
Set oGen = CreateObject("diCryptOCX.gen")
Debug.Print "Version=" & oGen.Version

In an ASP page

Dim oGen
Set oGen = Server.CreateObject("diCryptOCX.gen")
Response.Write "Version=" & oGen.Version

Refer to the syntax and details of the classes and methods of the ActiveX interface.

Note: Almost all the COM/ASP methods require the data to be encoded in hexadecimal. Handling byte array types in VBScript is fraught with problems so we don't even offer the option.

For examples, see the test code apiocxtests.asp and other ASP test pages provided in the distribution (look in the folder C:\Program Files\CryptoSys\COM).

[Contents] [Index]

[PREV: Converting VB6 to VB.NET...]   [Contents]   [Index]   
   [NEXT: "Hello world" programs...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.