Hi, I want to try and write some InSim stuff in VB .NET, since VS2k5 Express is free and all that, but I have a problem.
In my InSimInit class I have
and when send it it still shows as e.g. 29999, 5-bytes in length. I've tried Convert.ToUInt16 and some other stuff but I can't get it to become 2-bytes in length![](/static/smilies/frown.gif)
How do I convert the port to the InSim word? Also, I don't think Convert.ToByte is working with flags and nodesecs![](/static/smilies/scratchchin.gif)
Thanks for your help![](/static/smilies/biggrin.gif)
In my InSimInit class I have
Public port As Integer
and when send it it still shows as e.g. 29999, 5-bytes in length. I've tried Convert.ToUInt16 and some other stuff but I can't get it to become 2-bytes in length
![](/static/smilies/frown.gif)
How do I convert the port to the InSim word? Also, I don't think Convert.ToByte is working with flags and nodesecs
![](/static/smilies/scratchchin.gif)
Thanks for your help
![](/static/smilies/biggrin.gif)