Hello
I am working on some live random access files created with a vb6 application. I would like to read those files in a dot.net application. I have two problems that clash. Obviously I need to read fields at the correct offset from the first byte and do not have the luxury of moving data around. However, the old application made use of the currency type (8 bytes) and amounts were decimal (2 places). When I try to read those files with double (also 8 bytes) I do not get the right result. I want to maintain the length of the fields (therefore the position of the offsets), or if strictly necessary convert the files with a one-off application. I can do the latter easily but want to avoi actually changing the files so I can still use vb6
I am working on some live random access files created with a vb6 application. I would like to read those files in a dot.net application. I have two problems that clash. Obviously I need to read fields at the correct offset from the first byte and do not have the luxury of moving data around. However, the old application made use of the currency type (8 bytes) and amounts were decimal (2 places). When I try to read those files with double (also 8 bytes) I do not get the right result. I want to maintain the length of the fields (therefore the position of the offsets), or if strictly necessary convert the files with a one-off application. I can do the latter easily but want to avoi actually changing the files so I can still use vb6