Sign in to follow this  
Guest DSN

Placement of SimConnect.dll

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

>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

Share this post


Link to post
Share on other sites

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