Calling non-static .NET routines via dotNET Object - class constructor missing
Hi,
as the heading says, I am trying to call a non-static .NET routines via dotNET Object using as described here https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/calling-from-dotnet-assemblies.html.
I have added the assembly to the CLR bridge and am able to access the classes via dotNET, but for one of the classes I need to instantiate, there is no constructor available, i.e. no zctor() method. For another class in the same assembly it works fine.
The only difference I can see, are the input parameters of the constructor. For the class where it is working, the input parameters are all of simple types (string, int and bool). For the class, where the constructor is missing in TestComplete, the input parameter type is a class from the same assembly.
Here is an example of the TestComplete script code:
var endpoint = dotNET.MSGsup_NET_Messaging_Data.Endpoint.zctor("default", "channel1", "c:\\test", 250, false); //this works fine
var protocolHandler = dotNET.MSGsup_NET_Messaging.ProtocolHandler.zctor(endpoint, null, null); //here no zctor method is found
Does anyone know, how I can instantiate the ProtocolHandler class here?