|
In QTP script, i want to use external dll which is written by C# language.
I produced a very simple dll, pls see the following code
namespace ADDFun
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class ADDFun
{
public int AddFunction()
{
return 1;
}
}
}
Then in the QTP, i used it as the following way
Extern.Declare micInteger,"AddFunction", "C:\ADDFun.dll", "AddFunction"
The function has no parameter, and it will return a number.
Then i ran this script, a error occured, it said that "Invalid procedure call or argument" .
Can anyone help me?
Thanks |
|