I know I can do this in Python or .NET, but I need to do this in Visual
FoxPro 9.
 
Does anyone have an example that can show the proper setup / way to open
a binary file (like a TIFF file) - jump to a specific address - and
conduct a reverse ones compliment on the bytes in a specific range of
addresses?
 
Generally, I am looking for the right way doing something like the
following...
 
*-- open file and read
h= fopen(TIFF_FILE,10) 
fseek(h, (m.lnoffset))                  && move the pointer
for lnj = 1 to 42

        *-- each byte
        x = fread(h, (m.lnj) )

        *Q-- here I need to check byte, and reverse if necessary

endfor
fclose(h)

Tia,

John C. Gunvaldson
San Diego, CA



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to