I have a problems that I haven't came across before. I realise that what how I coded was not proper, but it should have worked and it did up till now.
I used C print calls ( fprintf(), etc) to create a binary output file. This works fine on my workstation. Now, when I try to run the executable on a different workstation on the network (runs on Windows NT), I get error messages that the memory could not be read. On my comp in Debug mode I don't get any errors at all.
I tryed switching to C++ earlier in the project but ran into a lot of trouble printing to a binary file; I need it in a particular format and need to control the bits that are written not only nubers and such; and with C++ the format was not recognised because there were extra bytes written.
Is there a painless way to fix this? Otherwise If you could let me know how to print specific bytes from a long int, or just a byte in C++, please. I would prefer not to hcange the code for it will take a year and a half.