Hello!
I'm trying to create a text menu in VB.net 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.
Expression
fsx_simconnect.Text(Microsoft.FlightSimulator.SimConnect.SIMCONNECT_TEXT_TYPE.PRINT_WHITE, 0, Event_id.EVENT_MENU_1, "Message text")
works without problems.
I think, the problem in nul chars in string for SIMCONNECT_TEXT_TYPE.MENU,
but can't find a way to write the String 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.
I'm trying to create a text menu in VB.net 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.
Expression
fsx_simconnect.Text(Microsoft.FlightSimulator.SimConnect.SIMCONNECT_TEXT_TYPE.PRINT_WHITE, 0, Event_id.EVENT_MENU_1, "Message text")
works without problems.
I think, the problem in nul chars in string for SIMCONNECT_TEXT_TYPE.MENU,
but can't find a way to write the String 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.

