Build HelloWorld

For the purposes of this exercise, the program instance you create will:

  • Register itself to the Linxter ISB
  • Retrieve its settings
  • Automatically create a communication channel request to a program instance we host called HelloWorldResponder
  • Send a message to HelloWorldResponder
  • Receive a message back from HelloWorldResponder
  1. Navigate to the Downloads page. You will need to download and install the Linxter SDK before you can begin this section.
  2. Next, you will need to copy four IDs and paste them into a text editor, like Notepad. On the “Programs” page, click “View” to access the necessary IDs.
  3. Copy the Company ID, Developer ID, Program ID, and the Activity ID. Paste them into your text editor.

  4. Open Visual Studio.
  5. Create a new Visual Studio project, select Console Application, and call it “HelloWorld”. You can add Linxter to any type of application but for this exercise we will use a Console Application.
  6. Add a new item as illustrated below.
  7. In the item dialog, add the “Linxter Hello World” template as illustrated below.
  8. This will start the Linxter Hello World template Wizard:
  9. Press the “Next” button to move to the second page of the
    Wizard. Paste the IDs you copied earlier. Then, click “Finish”.
  10. The Linxter Hello World template wizard has taken care of all the Linxter SDK integration steps for you. The LinxterHelloWorld1.cs file contains the code for your program.
  11. You should “Exclude From Project” the Program.cs that was generated by default when you created the HelloWorld project.
  12. Running the program will open a console window. You may terminate the console application at anytime by hitting ENTER.
  13. When your program instance receives a message back from the Hello World Responder program, it will display the message that was sent to it (found within the LinxterHelloWorld1.cs file).
  14. That’s it! You have now created your first Linxter enabled program, and sent and received a message over a secure, reliable, hyperconnective communication channel.

When you run your program again, it will be faster because it does not need to initialize itself onto the Linxter ISB and retrieve its settings.