- Prerequisite:
- Completion of the Linxter HelloWorld exercise
- Register a program called “MyFirstLinxter” to the Linxter ISB.
- View your Program’s details. Click the “Copy to clipboard” button then paste into a text editor (like Notepad)
You’ll need the LinxterTool command for your integration, as outlined below.
- Open Visual Studio.
- Create a new Console Application and call it “MyFirstLinxter”.
- Add a reference to the LinxterSDK.dll assembly (usually located in “C:\Program Files\Linxter Software Development Kit\bin\”).


-
Next you need to set up the database file for use with your program. Open a console window (e.g. run cmd.exe) and navigate to your project’s new
directory which should be [your Visual Studio projects folder]\MyFirstLinxter\MyFirstLinxter\.

You run the LinxterTool.exe tool to set up the database used by Linxter.

The database file is created when you execute the command line you previously pasted into your text editor.

Example:
LinxterTool.exe /I /c 00000000-0000-0000-0000-000000000000 /d 00000000-0000-0000-0000-000000000000 /p 00000000-0000-0000-0000-000000000000
Whereas c=Company ID, d=Developer ID, and p=Program ID
- Next you will need to click the “Show All Files” button in the Solution Explorer.
- Once you can see all the files, right click the LinxterSDKDB.sdf file that now exists in the project folder and choose “Include in Project”.

-
If Visual Studio attempts to open the .sdf as an attached SQL Server CE file, simply cancel out of those dialogs. The database is secured and will not
open in Visual Studio. We are going to treat it simply as a file.
- Now we’re ready to start writing code. On the top of your main code file add an include (or imports for VB) to the Useful.Linxter.SDK namespace.

- In the Main function of your application, create and assign a new variable to hold an instance of ILinxterMessaging and call it “sdk”.

- Your code should look like this now:
using System; using System.Collections.Generic; using System.Text; using Useful.Linxter.SDK; namespace MyFirstLinxter { class Program { static void Main(string[] args) { ILinxterMessaging sdk = LinxterMessaging.GetInstance(); } } }
You are done! Linxter has been integrated into your program. You can now begin to use the methods, properties and events of the Linxter API.
