Jump to content

rdart78

Frozen-Inactivity
  • Content Count

    3
  • Donations

    $0.00 
  • Joined

  • Last visited

Community Reputation

0 Neutral

Profile Information

  • Gender
    Male

Flight Sim Profile

  • Commercial Member
    No
  • Online Flight Organization Membership
    none
  • Virtual Airlines
    Yes
  1. Thank you, friend! It works successfully! CHR(0) is something small that I could not understand. Now I get it. You are right! I was a little wrong. I am programming vb.net. Understand the syntax of C#, don't know him well. I will heed your advice. And hope we can in the future to ask you for help if need be. Best regards, Roman.
  2. Thanks for the quick reply! Microsoft.FlightSimulator.SimConnect.SIMCONNECT_TEXT_TYPE.MENU function in vb.net same this function in C#, but I can't find examples of implementation text menu in C# too. Сan you write here the expression of this function correctly for version SIMCONNECT_TEXT_TYPE.MENU? The transition from vb.net in C# I have no problem, but I can't implement text menu in C# too. In C++ I did it, but I have difficulties working with sounds in C++ and other opportunities, which in the .net languages is very easy to do.
  3. Hello! I'm trying to create a text menu in VB.net оr С# using the expression: fsx_simconnect.Text(Microsoft.FlightSimulator.SimConnect.SIMCONNECT_TEXT_TYPE.MENU, 0, Event_id.EVENT_MENU_1, "Title Menu" & vbNewLine & "Choose item:" & vbNewLine & "Item1" & vbNewLine & "Item2" & vbNewLine & "Item2") but when I run it, I get an Exception 31 - SIMCONNECT_EXCEPTION_OUT_OF_BOUNDS. The problem in null chars in string "Title Menu" & vbNewLine & "Choose item:" & vbNewLine & "Item1" & vbNewLine & "Item2" & vbNewLine & "Item2". The example in C++ "TextMenu" from SDK this line has the analog "Title Menu\0Choose item:\0Item1\0Item2\0Item2\0"? where null chars is "\0". Expression: fsx_simconnect.Text(Microsoft.FlightSimulator.SimConnect.SIMCONNECT_TEXT_TYPE.PRINT_WHITE, 0, Event_id.EVENT_MENU_1, "Title Menu" & vbNewLine & "Choose item:" & vbNewLine & "Item1" & vbNewLine & "Item2" & vbNewLine & "Item2") works without problems, and the string is divided into substrings correctly. Tim “Beatle” Gregson in his blog https://fsandm.wordpress.com/2009/06/30/function-overloads/ mentions Managed SimConnect SDK, which, perhaps, could solve this problem. But I can't find any working links. Can anyone help to solve this problem? Best regards? Roman
×
×
  • Create New...