Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Writing Hexdecimal problem - help
Message
De
07/02/1999 21:06:15
 
 
À
07/02/1999 20:18:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00184940
Message ID:
00184948
Vues:
20
>Hi,
>
>I recently want to modify the DBF file header so that normal program cannot open it, the header first byte is
>
>0x03, I want to change it to 0xFF
>and on changing it back, I coded the following below
>
>lbyte1 = RIGHT(TRANSFORM(03,'@0'),2)

Try:

lbyte1 = CHR(3)

>FSEEK(lFileHandle,0,0)
>fwrite(lFileHandle, lbyte1,1)
>
>
>On completion, I often see 0x30, not 0x03, the file can still be
>open. How can I code it to write 0x03.
>What is wrong with my code, please advise or comments.
>Thank a lot.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform