Change the custNumber to int instead of short and see if that does the trick.
~~Bonnie
>Hi,
>I have a COM DLL method that receive integer parameter.
>I have export my DLL and call from .NET, but I get error "Cannot convert type ..."
>
>
>C#
>public decimal RetrieveBalance(short custNumber)
>{
> NETMyCustomer.mycustomer b = new NETMyCustomer.mycustomerClass();
> return b.getbalance(1);
>
>// return b.getbalance(custNumber);
>
>}
>
>
>any ideas?
>
>Thank you