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.

C++ alle Netzwerkadapter auflisten

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe gerade ein Programm geschrieben, dass alle Netzwerkadapter auflisten soll und das man Sie dann mit einem Drag-and-Drog Menü auswählen kann, aber leider zeigt er mir keine Netzwerkkarte an.

Hier ist mal ein Ausschnitt des Quellcodes:

// Anzahl der Netzwerk-Adapter bestimmen:

int ilNicCount = MibInst.GetNICCount(chkIncludeDialUp->Checked,

chkIncludeLoopback->Checked);

// Die ComboBox mit den Adapter-Namen füllen:

for(int ilAdapter = 0; ilAdapter < ilNicCount; ilAdapter++)

cmbAdapters->Items->Add(AnsiString((char*)pNicInfo[ilAdapter].Description));

cmbAdapters->ItemIndex = 0;

cmbAdaptersClick(0);

}

else

{

// Anzeige löschen:

stTextCurrIp->Caption = EmptyStr;

stTextSubnetMask->Caption = EmptyStr;

stTextMac->Caption = EmptyStr;

stTextType->Caption = EmptyStr;

// Speicher ggf. aufräumen:

if(pNicInfo)

{

delete [] pNicInfo;

pNicInfo = NULL;

}

}

Das Programm funktioniert soweit, nur er listet mir keine Adapters auf.

Danke für euroe Hilfe.

gruss

  • Bitte Code-Tags verwenden
  • Bitte das richtige Forum wählen (BCB-spezifische Klassen und Funktionen gehören nach C++: Compiler, IDEs, APIs)
  • Bitte den Aufruf von GetNICInfo nicht vergessen.

Das Programm funktioniert soweit, nur er listet mir keine Adapters auf.
Brüller :D

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.