Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading a double from a file
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Reading a double from a file
Divers
Thread ID:
00096119
Message ID:
00096119
Vues:
35
Hello!
I'm using low level functions to read (import) a binary file (I think it was created with C/C++). Of course, every thing I read becomes a character. Is there an easy way (I mean a function or something like that) to "cast" a 4-byte character to a VFP Flotant point variable, and a 8-byte to Double?
I can do the "translation" step by step (I mean bit by bit) in VFP, but it takes too long, considering that I have to do 60,000 or so "interpretation" of this every time I read the file.

TIA.

Ing. Omar Zavala
*****************************************************
Ing. Omar Zavala Moreno
Grupo Monteblaco "Donde nacen los champiñones"

omar@ozavala.com
Don't just try, do it!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform