10-11-2011, 07:32 PM
Hi,
I have a C# dll in VS2010 like this:
In QTP I added the following lines:
When QTP run the first line of code it launchs this error:
"The format file "myLibrary.dll" is invalid"
How can I resolve it?
Thank in advance
Andrea
I have a C# dll in VS2010 like this:
Code:
namespace A
{
public class B
{
public int GetValue() { return 1; }
}
}
In QTP I added the following lines:
Code:
Set obj = DotNetFactory("A.B","C:\\path\\myLibrary.dll")
msgBox obj.GetValue()
When QTP run the first line of code it launchs this error:
"The format file "myLibrary.dll" is invalid"
How can I resolve it?
Thank in advance
Andrea