Developer Reference Version Numbers

If you have a customer experiencing a problem that might be to do with ENCX and not your own code you will need to talk to us. And we'll ask you what version of the library the customer is using. To make things easier you can look up the ENCX version number in your code and display it to the user. Perhaps in the same Help >> About dialog where you display the version number of your application.

You just need to find out the Version property of your ENCX.Library object. See the code below (which also displays the version of the appplication using ENCX)...

using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace VersionNumber
{
    class Program
    {
        static void Main(string[] args)
        {
            ENCX.Library encxlib = new ENCX.Library();
            Console.Write("ENCX COM library version ");
            Console.WriteLine(encxlib.Version);

            Console.Write("Version of this test application ");
            Console.WriteLine(Assembly.GetExecutingAssembly().GetName().Version);
        }
    }
}