Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass numeric to COMDLL
Message
From
24/02/2004 11:02:55
 
 
To
24/02/2004 09:48:19
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00880251
Message ID:
00880310
Views:
27
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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform