AIMCC C# Plugin Tutorial


Lesson 1 : Creating a Plugin

To create your plugin, start a new project from Microsoft Visual Studio .NET 2003 by choosing File -> New Project.

Select "Visual C# Projects" from the list on the left, then "Class Library" from the choices on the right. Enter a name (we will use "MyPlugin") and location for your plugin and click OK. You will then see this code:

using System;

namespace MyPlugin
{
    /// <summary>
    ///
Summary description for Class1.
    /// </summary>
    public class Class1
    {
          public Class1()
          {
               //
               // TODO: Add constructor logic here
               //

          }
     }
}

The next thing to do is to make sure your project is registered for COM interop. To do this, choose Project -> Properties. You will see a dialog like this:

Set the "Configuration" dropdown at the top to say "All Configurations". Then select "Configuration Properties" from the list on the left. It will expand and reveal more options. Choose "Build" from these Options. You will now see a list of options on the right, and at the bottom there will be an option called "Register for COM Interop". Set it to True, and then click OK.

You now have a working .NET object that is visible to COM. In the next lesson, we will plug this object into AIMCC.

Next Lesson | Back to Table of Contents


Questions? Visit http://developer.aim.com/
Last updated: 03/17/2007