14 years ago
RemotingException when try to call dotnet dll
I wrote a test script to determine whether all the text on a control can be displayed i.e. whether the control is wide enough to fit it all in.
I already have a .NET dll which will take a control and return true or false depending whether it is big enough to display the text
I added this dll to the CLR bridge and called it using the following code:
Function DoesTextFitOnControl(control)
Dim RtnValue
Dim validator
Set validator = dotNET.TextValidation.ControlTextValidator.zctor
RtnValue = true
if not validator.WillTextFitOnControl(control) Then
RtnValue = false
end if
DoesTextFitOnControl = RtnValue
End Function
I got an exception shown in the attached screen shot
What is the problem and what should I do about it?
I already have a .NET dll which will take a control and return true or false depending whether it is big enough to display the text
I added this dll to the CLR bridge and called it using the following code:
Function DoesTextFitOnControl(control)
Dim RtnValue
Dim validator
Set validator = dotNET.TextValidation.ControlTextValidator.zctor
RtnValue = true
if not validator.WillTextFitOnControl(control) Then
RtnValue = false
end if
DoesTextFitOnControl = RtnValue
End Function
I got an exception shown in the attached screen shot
What is the problem and what should I do about it?