todd 0

todd 0

  • NA
  • 3
  • 0

.Net Bindings in VB.Net

Apr 13 2005 6:03 PM
Hi everyone! I'm having some difficulty with a .Net Binding developed by a 3rd party which is being wrapped a Web Service (by me). The binding is in C#, my web service code is in VB.Net. I'm doing this in VB.Net simply because I have more experience in VB and ASP than C/C++, but I can dust it off and use it again if necessary. I'm new to .Net, but not programming, so be as technical as necessary. Here's my situation... I've loaded the binding into the References of the project. The IDE recognizes the DLL and shows all of the objects within the DLL. As I code the IDE will provide those objects in the inline drop-down. So for all intents-and-purposes, this binding is available (as far as I can tell). In the binding there is a function and an enumerated data type of type "UInt16." Your code can call this function and pass the enumerated value of your choice to the function and it would, theoretically, work. When I do this, I receive the following error: "Value of type 'Short' cannot be converted to 'GameStat.GameType'." Mind you, GameType is the UInt16 enumeration. I'm confused as to why the compiler assumes this is a Short when the enumeration has this expressly as a UInt16. Where is this conversion coming from, and how do I resolve it? Have I not registered some part of the binding with the compiler to resolve this type declaration? You're probably thinking "ask the developer," and I have tried... but this freeware... and he's not responsive... Any suggestions would be greatly appreciated. The .Net Binding can be found here: http://www.int64.org/gamestat.html Thanks!

Answers (1)