Jump to content
Sign in to follow this  
Guest DSN

Placement of SimConnect.dll

Recommended Posts

Guest DSN

I'm working on an add-on for FSX using SimConnect. My app is written in pure C/WIN32. I'm linking the SimConnect.lib from the latest version of the SDK, but it will not run without the SimConnect.dll file being located in the same dir as the exe. I've installed all of the SP's and Acceleration and have 3 versions of SimConnect.dll in the WinSxS dir. I get the error message 'This application has failed to start because SimConnect.dll was not found. Re-installing the application may fix this problem'. This message is displayed when I execute the app, even before I attempt to connect. If I copy the SimConnect.dll into the dir with my app exe, it works fine.Anybody have any ideas?thanks in advance-David

Share this post


Link to post
Share on other sites

>I'm working on an add-on for FSX using SimConnect. My app is>written in pure C/WIN32. I'm linking the SimConnect.lib from>the latest version of the SDK, but it will not run without the>SimConnect.dll file being located in the same dir as the exe. >I've installed all of the SP's and Acceleration and have 3>versions of SimConnect.dll in the WinSxS dir.You need a manifest file in the same folder as your EXE, or built into is as a RT_MANIFEST type resource. Check the SimConnect documentation.A manifest file you can use is supplied in the SDK. You just need to rename it. Or, if you compiled with Microsoft Visual Studio and use the SDK supplied SimConnect.h, there's an option in the "Properties" for your project to produce a manifest file automatically (from the data in the header file), and, for VS .NET 2005 or later, to build one in as a resource. For older versions you can build them in using the Manifest Tool utility (MT.EXE).RegardsPete


Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

Share this post


Link to post
Share on other sites
Guest DSN

Pete,Thanks, that did the trickAnd the answer was under my nose the whole time :)thanks again-David

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...