- Messages
- 6,597
- Country

I thought I'd start a thread about tips when compiling with Dovetail's Simconnect.
First, if you need a copy of FSW's SimConnect.dll in the same directory as your finished exe or dll. There is no SxS GAC64 entry for Simconnect.dll, so your compilation cannot find it.
Next. You may have trouble with ypur end-result not finding the SimConnect.dll. You could get a pop-up error telling you SxS can't find it, and you need sxstrace.exe to log the problem. The actual problem is in SimConnect .h:
Change this to:
Now your app will find the SimConnect.dll that you put in your directory.
I have been copying the P3d v4 SDK file structures (substituting the appropriate FSW files), and using The free VisualStudio 2017 Community, for the C++ examples.
First, if you need a copy of FSW's SimConnect.dll in the same directory as your finished exe or dll. There is no SxS GAC64 entry for Simconnect.dll, so your compilation cannot find it.
Next. You may have trouble with ypur end-result not finding the SimConnect.dll. You could get a pop-up error telling you SxS can't find it, and you need sxstrace.exe to log the problem. The actual problem is in SimConnect .h:
Code:
//-----------------------------------------------------------------------------
//
// (c) 2017 Dovetail Games, a trading name of RailSimulator.com Limited. All rights reserved.
//
// NOTE: This file is autogenerated. Edit the master copy, not this one.
//-----------------------------------------------------------------------------
#ifndef _SIMCONNECT_H_
#define _SIMCONNECT_H_
#pragma once
#ifndef SIMCONNECT_H_NOMANIFEST
#if _MSC_FULL_VER >= 140040130
#ifdef _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
"name='Dovetail.DFS.SimConnect.Hybrid' " \
"version='0.1.1073.999' " \
"processorArchitecture='amd64' " \
"publicKeyToken='1ed9da73c880e429'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
"name='Dovetail.DFS.SimConnect.Hybrid' " \
"version='0.1.1073.999' " \
"processorArchitecture='x86' " \
"publicKeyToken='1ed9da73c880e429'\"")
#endif
#endif
#endif //SIMCONNECT_H_NOMANIFEST
#ifndef DWORD_MAX
#define DWORD_MAX 0xFFFFFFFF
#endif
#include <float.h>
typedef DWORD SIMCONNECT_OBJECT_ID;
Change this to:
Code:
//-----------------------------------------------------------------------------
//
// (c) 2017 Dovetail Games, a trading name of RailSimulator.com Limited. All rights reserved.
//
// NOTE: This file is autogenerated. Edit the master copy, not this one.
//-----------------------------------------------------------------------------
#ifndef _SIMCONNECT_H_
#define _SIMCONNECT_H_
#pragma once
#ifndef DWORD_MAX
#define DWORD_MAX 0xFFFFFFFF
#endif
#include <float.h>
typedef DWORD SIMCONNECT_OBJECT_ID;
Now your app will find the SimConnect.dll that you put in your directory.
I have been copying the P3d v4 SDK file structures (substituting the appropriate FSW files), and using The free VisualStudio 2017 Community, for the C++ examples.


