//我必须创建一个由// 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);
}
}
}
}