Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling dll C# in VBScript
#1
Not Solved
Hi,

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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  calling QTP script from one to another krishnas.tester 3 6,474 11-12-2014, 10:32 AM
Last Post: vinod123
  calling stored procedure from Oracle borisk 3 6,199 03-19-2013, 12:41 PM
Last Post: gaveyom
  Function is not calling from subdriver qtpexpert 0 1,976 01-18-2013, 12:25 PM
Last Post: qtpexpert
  While calling sub procedure its giving error Akhila 1 2,337 10-22-2012, 01:55 PM
Last Post: harishshenoy
  Running .dll files Aurodeepta 1 2,391 08-22-2012, 03:18 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 3 Guest(s)