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.

Problem mit GetComputerName()

Empfohlene Antworten

Hallo zusammen,

ich bekomme bei einem meiner Testrechner (winXP) auf mein GetComputerName() den ErrorCode 8 -> ERROR_NOT_ENOUGH_MEMORY

	TCHAR* pCName;

	pCName = (TCHAR*)malloc(MAX_COMPUTERNAME_LENGTH + 1);

	GetComputerName(pCName, &size);

Das wäre mein Code ich weiß leider nicht was ich falsch mache...

Da das Programm auf meinen anderen Testrechnern (Vista32, Vista64) wunderbar funktioniert stellt sich mir die Frage ob es an WinXP liegen könnte.

Ich hoffe mir kann jemand helfen!

Schönen abend noch!

MfG

Faby

  • Autor

Oh Merci, ich dachte das is nur output... aber warum funktionierts dann bei den Vista rechnern?? Wers morgen auf jeden fall mal ausprobieren aber das mit den Vista rechnern check ich dann nich ganz^^ :)

  • Autor

Okay ich hab jetzt ausprobiert ob meine Funktion klappt indem ich ein kleines Prog geschrieben hab das nur in einem Fenster den PC Namen ausgibt... Und ähm joa es funktioniert *mist* dann hab ich wohl irg wo anders in meinem code ein Problem :) Danke für die response!

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.