Hello,

I'm writing another hex editor. For now I do not want to save new data. When I use CreateFileMapping, dwMaximumSizeLow must be changed to accomodate ascii conversion and pure text and line address fields. When it is changed, the program automatically changes size of original file. I have tried many methods like CloseHandle then re-open with original size parameter with GetFileSize previous to altering dwMaximumSizeLow then re-closing and nothing seems to work. I can't open with READONLY access or I can't wriite to memory pointer. I will be happy to post code if necessary. Thanks gang :)
Posted on 2003-09-19 14:09:57 by mrgone
I can stay with defualt dwMaximumSizeLow=0h. Then I must write only original file size bytes to buffer pointed to by CreateFileMapping. Then when I display data with SendMessage I use pointer to seperate memory buffer where conversion ascii data is. Now I get full display of line addresses,hex display and ascii fields and file size is unchanged.
Posted on 2003-09-21 00:35:37 by mrgone