-
Notifications
You must be signed in to change notification settings - Fork 1
Creating a Basic Library
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!