Skip to content
This repository was archived by the owner on Jun 26, 2021. It is now read-only.

Creating a Basic Library

Captain ALM edited this page Jun 26, 2021 · 2 revisions

PROJECT SUPERSEDED

A new mono and .net supporting project is now maintained at Captain ALM Console.


First, create a new project in visual studio in class library mode. The go to Properties -> References -> Add Reference -> Then Browse and Select cnsrapi.dll -> Ok X2 -> Save

Then create a new class (Or rename the current one). Then import the api namespace.

C#: Using captainalm.calmcon.api; VB: Imports captainalm.calmcon.api

Next, add a function which can be called any thing, give it no parameters and give a return value of LibrarySetup. The function needs the Setup Method Attribute.

C#: [SetupMethod] public librarysetup setup(){}

VB: <SetupMethod> public function setup() as librarysetup

Next, make it return an Instance of LibrarySetup.

C#: [SetupMethod] public librarysetup setup() { return new LibrarySetup("testlib",0,null,null); }

VB: <SetupMethod> public function setup() as librarysetup return new LibrarySetup("testlib",0,nothing,nothing) end function

Now you have created a basic library!

Clone this wiki locally