Herunterladen Inhalt Inhalt Diese Seite drucken

Digitronic Automationsanlagen DigiWEB Bedienungsanleitung Seite 24

C-schnittstelle
Vorschau ausblenden Andere Handbücher für DigiWEB:
Inhaltsverzeichnis

Werbung

DigiWEB
C-Schnittstelle
Beispiel mit Destruktor:
Zugriff in Visualisierung:
typedef struct
{
long dummy;
}tAppData;
tAppData ApplicationData = {0};
static StringM *StaticText=0;
StringM* tAppDataGet_strPrg(tAppData* pStruct)
{
if(StaticText)
return StrCreateM(StaticText->str);
return StrCreateM("");
}
void tAppDataSet_strPrg(tAppData* pStruct, const char* str)
{
StaticText = StrCpyM(StaticText, str);
}
#ifdef WIN32
void tAppDataDestruct_strPrg(tAppData* pStruct)
{
if(StaticText)
{
digiFree(StaticText);
StaticText=0;
}
}
#endif
const tDigiWebSymbol DigiWebSymbols[]=
{
DIGIWEBSYMBOL_M__(tAppData, SECURITY_NONE, strPrg,"standard text", 1),
0
};
DIGIWEBSYMBOL_M_R(typ, pSecurity, name,defstr,IsDestruct)
remanent
DIGIWEBSYMBOL_M_G(typ, pSecurity, name,defstr) hat nur eine Get-Funktion
Seite 24 von 44
#$strPrg
Automationsanlagen GmbH
speichert
Digitronic
den
Text
3. Juni 2011

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis