I tried to create a C++ project which includes SimConnect.h, but so far I had no luck. I am using QtCreator with Qt5.6 and the MSVC2013 32bit compiler! Also, I am using SDK v3, not v4!
First I had like 7 unresolved externals, but then noticed that SimConnect requires user32.lib, AdvApi32.lib and Shell32.lib, so I found out that a way to include these is to add pragmas like so:
I did that and indeed most of my unresolved external errors are gone, but one still remains. I cannot figure out how to solve it:
Code: Select all
#pragma comment (lib, "user32.lib") #pragma comment (lib, "AdvApi32.lib") #pragma comment (lib, "Shell32.lib")
Is there any other library which I need to include?SimConnect.lib(commClient.obj):-1: Fehler: LNK2019: unresolved external symbol __imp__CoTaskMemFree@4 referenced in function "void __stdcall readConfig(unsigned long,int &,char *,char *,unsigned int &,bool &)" (?readConfig@@YGXKAAHPAD1AAIAA_N@Z)