Jump to content
The simFlight Network Forums

Recommended Posts

Posted

While waiting for an MFS release that accommodates FSUIP7 without slowing down, I thought I'd try out the SimConnect examples in the SDK. However, when I load a vanilla project, say OpenClose into Visual Studio and try to build it I immediately get "Cannot open include file: 'SimConnect.h': No such file or directory."

No problem, I point to it explicitly with the path to the include file in the SDK. Then I get "LNK1104 cannot open file 'SimConnect.lib'", even though it looks like the path to the library folder is being included in the project properties. 

No problem, I copied the lib directly into the OpenClose project directory. Now I get "MSB3073 The command "xcopy /D /Y "Simconnect SDK\lib\SimConect.dll" .... I won't copy the entire error message - something to do with the dll.

I futzsed around a bit more, moving the dll into the target build folder, etc.,  then gave up. 

Anybody actually get one of these unmanaged SimConnectSamples to run? How?

Respectfully, Dave

Posted

Hi Dave,

sorry, but this is not a general forum for MSFS issues, only for those relating to FSUIPC. You should try the MSFS forums.

Having said that, it sounds like you haven't specified the correct path to the SimConnect.lib in your build properties. It has to be the folder that contains the SimConnect.lib, not the SDK top-level folder or other folders.

Note also, that there are now two SimConnect.lib files. I recommend you link against the one under the 'static' folder, as when using this you do not require the SimConnect.dll at runtime. 

John

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