标题: QTP调用.NET4.0的DLL报错,求助 [打印本页] 作者: liiiih 时间: 2013-8-6 21:19 标题: QTP调用.NET4.0的DLL报错,求助 c#DLL代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QtpLibrary
{
public class QtpTest
{
public int AddTest(int a, int b, int c)
{
return a > b ? a + b : a + c;
}
}
}
QTP 代码
Set qtp = DotNetFactory.CreateInstance("QtpLibrary.QtpTest","D:\WorkPlace\C Sharp\ClassLibrary\QtpLibrary\QtpLibrary\bin\Debug\QtpLibrary.dll")