C#创建Erwind DLL对象实例时出现异常

时间:2016-10-06 14:29:58

标签: c# exception erwin

//我必须创建一个由// Software Erwin的DLL库运行的程序。   //我导入了DLL项目,这是代码:

//例外是:Error 80040154 unregistered interface

//怎么了?我怎么能这样做?

//这是完整的代码:

 using System;
using System.Collections.Generic;
using System.Text;
using System.IO;


namespace Prova1
{

    class MainClass
    {


        public static void Main(string[] args)
        {
            try
            {
                SCAPI.Application scApp = new SCAPI.Application();//Exception

                if (scApp == null)
                {
                    Console.WriteLine("Erwin API could not be started.");
                    return;
                }

                Console.WriteLine(" Hello World!" + scApp.ApiVersion);
            }
            catch (Exception e){

                Console.WriteLine(e.Message);
            }
        }
    }
}

0 个答案:

没有答案
相关问题