Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing Hexdecimal problem - help
Message
From
07/02/1999 20:18:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Writing Hexdecimal problem - help
Miscellaneous
Thread ID:
00184940
Message ID:
00184940
Views:
60
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)
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.
Best Regards
Virusim
Next
Reply
Map
View

Click here to load this message in the networking platform