Jump to content
The simFlight Network Forums

HondaCop

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by HondaCop

  1. Hello everyone, I keep trying to pause FSX but I am unable to. I am writing a 1 to the 0262 offset, but to no avail. Anyone has any idea what could be wrong? According to the SDK, it says that you can write to this offset, but it's being listed as Ok-SimE "for write only, works okay, but resorting to Sim Events via SimC, not SimVar reads or writes". What does this mean?
  2. Hello Peter, I have been using your .NET DLL sample (1.3) for C# and I was wondering how can it be coded so that if for some reason the application loses the connection to FSUIPC, it can reopen a new connection and continue functioning as if nothing happened? catch (FSUIPCException ex) { if (ex.FSUIPCErrorCode == FSUIPCError.FSUIPC_ERR_SENDMSG) { // Send message error - connection to FSUIPC lost. // Show message, disable the main timer loop and relight the // connection button: // Also Close the broken connection. FSUIPCConnection.Close(); MessageBox.Show("The connection to Flight Sim has been lost.", AppTitle, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { // not the disonnect error so some other baddness occured. // just rethrow to halt the application throw ex; } } The code above is the catch that detects when the connection is lost. How can I edit it, so that it just attempts to open a new connection and continue functioning normally? Thanks for any help...
×
×
  • 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.