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.

angeblich sind alle Festplatten voll...

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte in meinem Programm eine Datei anlegen, aber ich erhalte, sobald ich einen Write-Befehl aufrufe, die Meldung mit OK-Box und rot-weißem X

"Beim Zugriff auf D:\Daten\data1.txt wurde ein voller Datenträger gemeldet"

Ich finde dann zwar die angelegte Datei, allerdings ist diese leer.

Auf der Platte sind allerdings noch 7,5 GB frei!

(Ich hab's auch schon auf diversen anderen Laufwerken ausprobiert - immer das gleiche Problem!)

Hier der Code - mittlerweile schon aufs Minimalste zusammengekürzt, aber der Fehler passiert immer noch (außer, wenn ich die Zeile mit WriteString auskommentiere)!


CStdioFile* myOutputfile;


myOutputfile = new CStdioFile();

myOutputfile->Open(currentOutFilePath, CFile::modeCreate|CFile::modeWrite);

AfxMessageBox("created and opened");


myOutputfile->WriteString("n");


myOutputfile->Close();

sieht banal aus - aber es geht nicht :(

:rolleyes:

Grüße,

Technician

Originally posted by Guybrush Threepwood

Hast du mal Write() anstatt WriteString() probiert?

Hat auch nicht funktioniert... aber hab jetzt mal den ganzen Debug-Ordner gelöscht und alles neu compiliert --> jetzt mag's wieder, wie's soll

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.