Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass numeric to COMDLL
Message
De
24/02/2004 11:02:55
 
 
À
24/02/2004 09:48:19
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00880251
Message ID:
00880310
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform