Onkel Schuppig
Erfahrenes Mitglied
Hallo Leute,
beim Erstellen einer 64-Bit-Anwendung habe ich bei fscanf() ein Problem:
Bei 32 Bit funktioniert das einwandfrei, bei 64 bekomme ich eine völlig falsche Zahl zurück.
Was kann man machen, damit es unter 32 wie unter 64 Bit sauber läuft?
Ich benutze Visual C++ 2008 Prof.
beim Erstellen einer 64-Bit-Anwendung habe ich bei fscanf() ein Problem:
C++:
FILE* file = fopen("daten.txt", "r");
// ...
size_t anzahl;
fscanf (file, "%d", &anzahl);
Was kann man machen, damit es unter 32 wie unter 64 Bit sauber läuft?
Ich benutze Visual C++ 2008 Prof.
Zuletzt bearbeitet von einem Moderator: