Jump to content
The simFlight Network Forums

cspencer

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by cspencer

  1. I develop ACARS software for a VA and we've had trouble with active pause as well. Our heuristic is basically, if the aircraft is moving according to the ground speed, but the coordinates are identical to the last tick, assume active pause is enabled. It's a bit naff but it works well enough. Hopefully we will eventually get a way to query this properly via SimConnect..

  2. "Hacky" or not, it is easy enough to just find the relevant folder names (which do include the build number) in WinSxS. And this method works even when the SxS system is in a mess

    I might have to look into that then. If it's good enough for FSUIPC then it's good enough for me! Thanks Pete.

     

    I never managed to unravel some of the possible Registry messes folks get into

     

    I once had a guy who ended up with a 64-bit version of the C++ runtime in his 32-bit system directory which was fun to track down. I do think it's funny the things people manage to do to their computers!

  3. Not sure what "is because of ..."? FSUIPC has to be modified each time there's a new release because the position of the places it hooks, inside FS code, changes. The SimConnect version is trivial by comparison.

     

    Ah, of course. I forgot about all the extra trickery that FSUIPC has to do.

     

    Surely most SimConnect apps aim at a particular version of SimConnect. like the SP1 or SP2 build. I'm still using some apps which only work with the original, 60905, version. This isn't a problem as long as the end user knows he needs to run the relevant SimConnect.msi. They are still all included with the FSX-SE install, in the SDK folder's "LegacyInterface". In facyt a third party installer could rely on that and run the relevant installer ready.

     

    In my application I bundle separate manifests for the RTM, SP1 and SP2 versions of SimConnect and attempt to create activation contexts at runtime until one of them works. It's really a wonder how Microsoft has managed to make DLL loading so overly-complicated with WinSxS.

     

    FSUIPC can use any version of SimConnect it knows about. For P3D I had to build my own SomConnect DLL and install it in the Modules folder with FSUIPC, as Lockheed-Martin decided not to install any SimConnect DLLs at all and just expect developers to build the library into ther code. If you have a dedicated P3D-only program that works, of course, but I wanted the one build of FSUIPC to work with all.

     

    That's interesting. I've never used Prepar3D, but I know people successfully use my application with it. I always assumed it installed the FSX versions of SimConnect, but I guess everyone who has it working just has the original FSX installed alongside it. How is SimConnect distributed with P3D if not as a DLL? Is it a static library?

     

    I don't use Manifests, or the automatic side-by-side mechanism. I just determine what versions are installed (by looking in the WinSxS folder), and choose the one I want to interface to -- normally the latest one which is compatible with the version of FS I find I'm running with. I link dynamically to all of the SimConnect functions, not statically.

    Hm. This does have the advantage of being able to locate all the available versions at runtime, but it does feel a little hacky.. It would be nice if there was some official way of enumerating the available WinSxS DLLs, but I've not been able to find any.

     

    Chris

  4. Pete,

     

    I assume this is because of the new version of SimConnect? A fresh install now will get you 10.0.62608.0 with 10.0.62607.0 nowhere to be found, which is really quite irritating as a software developer. I can see this becoming a real point of grief if I have to release a new version of my application every time Dovetail does an update. The best idea I've been able to come up with is to include manifests for the next few versions on the assumption that they will continue to increase the number incrementally. I've yet to find any way to get Windows to just load whatever version is available which would certainly make life easier. I'd be interested in hearing your thoughts on the matter.

     

    Cheers,

     

    Chris

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