Irgentwie funktioniert es be mir nicht
Ich habe eine .dll erstellt um einige Funktionen zu siemulieren (siehe Anhang).
Hie ist der Quellcode.
///////////////////////////////////////////////////////////////////////////////
#include "ML5Data.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
ML5DataStatic *StaticData;
ML5DataDynamic *DynamicData;
unsigned long GetDynamicData(ML5DataDynamic *DataSetPtr, char* ServerAddress, unsigned int ServerPort, unsigned int MaxTimeOut)
{
return 0;
}
bool GetStaticData(char* Dir, char* Filter, char* Measurement, ML5DataStatic* DataSetPtr)
{
return 0;
}
void InitDynamicData(ML5DataDynamic* DynamicData)
{
DynamicData -> SpurVL = 1000,0;
DynamicData -> SpurVR = 2000,0;
DynamicData -> SpurHL = 3000,0;
DynamicData -> SpurHR = 4000,0;
DynamicData -> SpurVG = 5000,0;
DynamicData -> SpurHG = 6000,0;
DynamicData -> geoAchseH = 1000,0;
DynamicData -> SturzVL = 1000,0;
DynamicData -> SturzVR = 2000,0;
DynamicData -> SturzHL = 3000,0;
DynamicData -> SturzHR = 4000,0;
DynamicData -> RadversatzV = 1000,0;
DynamicData -> RadversatzH = 1000,0;
strcpy(DynamicData -> ErrorMessage, "Keine Fahler");
}
void InitStaticData (ML5DataStatic* StaticData)
{
StaticData -> SpurVL = 1000,0;
StaticData -> SpurVR = 2000,0;
StaticData -> SpurHL = 3000,0;
StaticData -> SpurHR = 4000,0;
StaticData -> SpurVG = 5000,0;
StaticData -> SpurHG = 6000,0;
StaticData -> SpurVMaxDiff = 7000,0;
StaticData -> SpurHMaxDiff = 8000,0;
StaticData -> SpurDiff20VL = 1000,0;
StaticData -> SpurDiff20VR = 2000,0;
StaticData -> SpurDiff10VL = 3000,0;
StaticData -> SpurDiff10VR = 4000,0;
StaticData -> SpurDiffMaxDiffV = 5000,0;
StaticData -> LenkWMaxLinksVL = 1000,0;
StaticData -> LenkWMaxLinksVR = 2000,0;
StaticData -> LenkWMaxRechtsVL = 3000,0;
StaticData -> LenkWMaxRechtsVR = 4000,0;
StaticData -> EingWinkel20VL = 1000,0;
StaticData -> EingWinkel20VR = 2000,0;
StaticData -> EingWinkel10VL = 3000,0;
StaticData -> EingWinkel10VR = 4000,0;
StaticData -> RadversatzV = 1000,0;
StaticData -> RadversatzH = 2000,0;
StaticData -> FahrachswinkelH = 1000,0;
StaticData -> LenkwinkelMaxVL = 1000,0;
StaticData -> LenkwinkelMaxVR = 1000,0;
StaticData -> Nachlauf20VL = 1000,0;
StaticData -> Nachlauf20VR = 2000,0;
StaticData -> Nachlauf10VL = 3000,0;
StaticData -> Nachlauf10VR = 4000,0;
StaticData -> NachlaufMaxDiff = 5000,0;
StaticData -> Spreizung20VL = 1000,0;
StaticData -> Spreizung20VR = 2000,0;
StaticData -> Spreizung10VL = 3000,0;
StaticData -> Spreizung10VR = 4000,0;
StaticData -> SpreizungMaxDiff = 5000,0;
StaticData -> Achsversatz = 1000,0;
StaticData -> SeitenversatzL = 1000,0;
StaticData -> SeitenversatzR = 2000,0;
StaticData -> Radstandsdiff = 1000,0;
strcpy(StaticData->ErrorMessage, "Keine Fahler");
strcpy(StaticData->ProtocolFiles, "AAAAAAAAAAAA.xml");
StaticData -> FileTime.tm_sec = 1000;
StaticData -> FileTime.tm_min = 1000;
StaticData -> FileTime.tm_hour = 1000;
StaticData -> FileTime.tm_mday = 1000;
StaticData -> FileTime.tm_mon = 1000;
StaticData -> FileTime.tm_year = 1000;
StaticData -> FileTime.tm_wday = 1000;
StaticData -> FileTime.tm_yday = 1000;
StaticData -> FileTime.tm_isdst = 1000;
}
/////////////////////////////////////////////////////////////////////////////////////////
Wenn ich die Simulations-DLL mit dem "Knoten zum Aufruf externer Bibliotheken" zusammen verwende (siehe Anhang), kommt nix vom Knoten aus
was mache ich falsh ??