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,

Ich hab mal wieder ein Problem !!! Weiss zufällig jemand, wie man irgendwie abfragen kann, ob man im Internet ist oder nicht. Wenn ich mich nämlich im Internet angemeldet habe, soll ein Ereignis ausgelöst werden, aber halt erst dann wenn ich angemeldet bin. Ich weiss nicht wie ich das realisieren sollte.

Für eure Bemühungen bedank ich mich schon mal im voraus !!!! :cool:

In Welcher Header/Bibliothek ist denn die Funktion drin? Ich finde sie nicht. Weder in Borland 5.5 noch im CodeWarrior.

Ich verwende diese Funktion um den Online oder Offline Modus abzufragen. Das Ganze funktioniert aber nicht so richtig.

Denn sowohl wenn ich offline bin, als auch wenn ich online bin liefert die Funktion TRUE zurück. Ich gehe über DFÜ-Netzwerk ins Internet. Vielleicht kann mir ja jemand helfen.

DANKE !!!

// Returns true if the global state is offline. Otherwise, false.

BOOL CTimerOfflineDlg::IsGlobalOffline(void)

{

DWORD dwState = 0;

DWORD dwSize = sizeof(DWORD);

BOOL fRet = FALSE;

if(InternetQueryOption(NULL,

INTERNET_OPTION_CONNECTED_STATE, &dwState, &dwSize))

{

if(dwState && INTERNET_STATE_DISCONNECTED )

fRet = TRUE;

}

return fRet;

}

Auch mit den Bit-Operator & funktioniert das ganze nicht, ich bekomm dann immer FALSE zurück, egal ob ich online oder offline bin !

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.