CometLib

From CometWiki

Jump to: navigation, search

CometLib is an API – a library of methods embodied in a COM container that exposes the file system interface used by Comet, so that programs written in other languages can access Comet files. These programs are just other clients for CFAM. This document introduces that API. Examples will be written in Visual Basic, although programs written in any language capable of attaching to a COM Server can use the API.

Comet must be running on the same computer as the client program for the CFAM API to function. For file security, CFAM restricts access to files designated as type C in the SYSGEN Comet.ini file. Thus, the complete file security for a particular user can be governed by the NODENAME.CFG file generated by SYSGEN.

The Comet install program automatically registers CometLib with Windows as a COM server. The API is contained in the file cometlib.dll which is placed in your Comet folder by the workstation install procedure.

Here is a step-by-step example of using cometlib in a visual basic program. Currently there are 2 versions of visual basic in favor, VB 6.0 and VB.NET. Select the appropriate link below for the version of Visual Basic you are using. Keep in mind that CometLib can be used by ANY program or language capable of interfacing to a COM library.

Download the CometLib Reference Manual (PDF document NOT DONE YET

File:Cometlib.pdf

Personal tools