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++ .NET] Registry auslesen Problem

Empfohlene Antworten

Veröffentlicht

Hallo Freunde.

Ich spiele zur Zeit etwas mit meiner Registry rum und habe ein Problem:

Ich kann zwar so in der Registry was schreiben:


RegistryKey^ key = Registry::LocalMachine->CreateSubKey("HARDWARE\\PCI");

key->SetValue("slots","4");

Und es wird auch angezeigt, aber das auslesen geht nicht:

RegistryKey^ read = Registry::CurrentUser->OpenSubKey("HARDWARE\\PCI");

if(Convert::ToString(read->GetValue("slots")) != "4")

{

	key_fehler();

	return 0;

}

Ich krieg immer eine Fehlermeldung.

Schlüssel in der Registry ohne "\\" kann ich ohne Probleme auslesen.

Wie löse ich das Prob?

Liebe Grüße

errox

Was willste denn mit \\ ?

Desweiteren schreibst du etwas inne LOCAL_MACHINE und willst es von CURRENT_USER auslesen?

  • Autor

Bin ich doof.


	read = Registry::LocalMachine->OpenSubKey("HARDWARE\\PCI");

	if(Convert::ToString(read->GetValue("slots")) != "4")

	{

		key_fehler();

		return 0;

	}

Aber so funktioniert es genau so wenig :(

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.