Jump to content
The simFlight Network Forums

JagsPPL

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by JagsPPL

  1. I'm a bit of a newbie at C#, but thanks very much, that works a treat! James
  2. Hi. Thanks very much for that. I've tried this: string MyString = "Hi! How are you?"; byte[] datablock = new byte[MyString.Length + 1]; Encoding asciiEncoder = UTF7Encoding.ASCII; asciiEncoder.GetBytes(MyString).CopyTo(datablock, 0); int a = 0; fsuipc.FSUIPC_Write(0x3380, datablock, ref a, ref dwResult); fsuipc.FSUIPC_Write(0x32FA, 6, ref token, ref dwResult); I'm afraid I get the error "cannot convert from byte[] from byte" Thanks! James
  3. Hello, I'm just writing a program in C#, and II'm trying to do this: int a = 0; fsuipc.FSUIPC_Write(0x3380, Convert.ToByte("Hello\0"), ref a, ref dwResult); fsuipc.FSUIPC_Write(0x32FA, 6, ref token, ref dwResult); When I run it, I get an error saying that the "input string is invalid". Help! Thanks very much James
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.