Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo alle zusammen,

also ich hab folgendes Problem. Ich arbeite mit dem Graphics Designer von WinCC. Dort habe ich ein EA-Feld angelegt. Im Runtime möchte ich nun in dieses Feld beispielsweise "Rezept eins" eingeben. Dort drücken auf einen Speichern Button soll dieses dann in eine datei geschrieben werden un durch drücken auf einen Laden Button wieder in dieses EA-Feld aus der Datei gelesen werden.

das wegschreiben funktioniert aucheigentlich. Habe ich im Ereignis "Maus drücken"

des Speichern Buttons folgendermaßen realisiert:

#include "apdefap.h"

void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)

{

FILE* pFile = NULL;

char szFile[_MAX_PATH+30];

//create file name

strcat(szFile,GetTagChar("str_Rezept1_Name"));

char eingabe[30];

strcat(eingabe,GetTagChar("text")); //text ist eine von mir intern angelegte Variable

//in WinCC

//open or create file to write

pFile = fopen(szFile,"w+");

//check return value of fopen()

if (pFile == NULL)

{

printf("\r\nError in fopen()\r\n");

return;

}

//write data

fprintf(pFile,"%s\n",eingabe);

fclose(pFile);

}

Also falls mir jemand helfen kann wie die sachen aus der Datei wieder auslesen kann schonmal danke im voraus!!!

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.