Which of the parameters is supposed to be passed by ref?? If it is the first
parameter (txtUserName.Text) then you will need to create another string
variable, set it = to txtUserName.text and pass that into the call. The
reason for this is that properties cannot be used as reference parameters..
To top this off, when calling a method that has a ref parameter, specify the
ref keyword..
an example would be (if the first parameter is the ref parameter):
string tempUserName = txtUserName.Text;
CustomOutVal = CustObj.Authenticate(ref tmpUserName,
pass , Domain );
Hope this helps
Eddie de Bear
"kishor" wrote:
I have an activeX dll, I am calling one function from that
dll. I am using C# as coding language. I am getting
following error.
cannot convert from 'string' to 'ref string'
How do I call this function ?.
My statement is like this
CustomOutVal = CustObj.Authenticate(txtUserName.Text,
pass , Domain );
Regards,
Kishor