Код: Выделить всё
#include "sgp4/services/DllMainDll_Service.h"
#include "sgp4/services/TimeFuncDll_Service.h"
#include "sgp4/wrappers/DllMainDll.h"
#include "sgp4/wrappers/EnvConstDll.h"
#include "sgp4/wrappers/AstroFuncDll.h"
#include "sgp4/wrappers/TimeFuncDll.h"
#include "sgp4/wrappers/TleDll.h"
#include "sgp4/wrappers/Sgp4PropDll.h"
void LoadAstroStdDlls();
void FreeAstroStdDlls();
int main(int argc, char* argv[]) {
LoadAstroStdDlls();
char sgp4DllInfo[INFOSTRLEN];
Sgp4GetInfo(sgp4DllInfo);
sgp4DllInfo[INFOSTRLEN - 1] = 0;
printf("%s\n", sgp4DllInfo);
FreeAstroStdDlls();
return 0;
}
void LoadAstroStdDlls()
{
// Load MainDll dll
LoadDllMainDll();
// Load EnvConst dll and assign function pointers
LoadEnvConstDll();
// Load TimeFunc dll and assign function pointers
LoadTimeFuncDll();
// Load AstroFunc dll and assign function pointers
LoadAstroFuncDll();
// Load Tle dll and assign function pointers
LoadTleDll();
// Load Sgp4Prop dll and assign function pointers
LoadSgp4PropDll();
}
// Free all the dlls being used in the program
void FreeAstroStdDlls()
{
// Free MainDll dll
FreeDllMainDll();
// Free EnvConst dll
FreeEnvConstDll();
// Free AstroFunc dll
FreeAstroFuncDll();
// Free TimeFunc dll
FreeTimeFuncDll();
// Free Tle dll
FreeTleDll();
// Free Sgp4Prop dll
FreeSgp4PropDll();
}
< /code>
Есть очень мало официальной документации для этой библиотеки, и я не уверен, что еще мне нужно, чтобы заставить это работать. SGP4GetInfo
>
Подробнее здесь: https://stackoverflow.com/questions/796 ... nal-symbol