Jump to content
The simFlight Network Forums

flyboy7798

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by flyboy7798

  1. I actually used a WatCom compiler once for C early in my programming career.  Borland software is now part of Micro Focus, but I don't think there are many that use the old compilers by them.

    1 hour ago, Pete Dowson said:

    A gauge runs inside the Sim so it uses a subtlely different interface and a different library (the Module one). 

    Ok, the Borland 5 example basically had all the UIPC code that made it self contained as far as I could tell.  When you specify "different interface and a different library (the Module one)." Which example is that in?

    1 hour ago, Pete Dowson said:

    Sorry, this is now beyond me. I suggest you look at using the Module users LIB file, or incorporate the raw code directly.

    When I used the Borland 5 example code, I removed the GUI stuff and used the FSUIPC related code there to build my solution on.  I include in this post a zip with the code for the class that provides the FSUIPC interface to the other classes that need it like masking things like Elevator and Aileron input. In a sense, the attached code is like I masking code used for the events for Prepar3D.  

    As for the .NET example if its not for a gauge then I'm not interested in it. I did look at it, but there was so much there that it would take a bit for me to find anything useful.

    And thank you for your help, it means a lot as I just started learning to develop sim objects as a hobby.

    V/R

    Jim

    IFSUIPC.zip

  2. Hi Pete,

    No, I'm not using the Library.  I thought the borland example excluded it so I left it out. Basically I ported the example into a C++ gauge that needs to mask controls that are mapped through FSUIPC.  I stripped out the form code, and kept the relevant code. That may be why pdwResult gave me a value that didn't make sense and why it didn't connect.

    Very Respectfully,

    Jim

    P.S. I haven't had time to look at the .NET examples due to time constraints and that its in a different language.  I'll take a look later this evening.

  3. I've read most of the documentation from the FSUIPC SDK, I'm using Prepar3D v4.5, Visual Studio 2017 (free version), and am a retired software developer (Java, C/C+, Smalltalk, etc.).  Using the Borland C++ example I tried to open an connection to FSUIPC using this code (a snippet):

        m_is_fsuipc_connection_made = FSUIPCInterface.FSUIPC_Open(SIM_ANY, &dwClosed);
        
        if (m_is_fsuipc_connection_made)
        {
            m_read_sim_version_success = FSUIPCInterface.FSUIPC_Read(0x3308, 4, &FSVersion, &pdwResult);
        }
        if (m_read_sim_version_success)
        {
        ... rest of code omitted for brevity.

    In debug, the read function returns false.  I can't see why it is returning false, I have FSUIPC installed properly and can see it in the sim.   

×
×
  • 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.