Boy, you sure keep your cards close to the vest ... you don't offer a lot of information.
You've hit the Trifecta !
1. You don't describe the problem(s) you're having.
2. Aside from "//end of func" your code is unencumbered by comments.
3. You don't seem to offer a sample binary file.
Help me help you: please consider describing the problems you've encountered and/or provide a sample binary file.
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.
Binaries are both useless and unsafe If there's a bug a description and the relevant code snippet should be plenty to diagnose the issue.
yeah, I gotta admit that you make some good points, 'Fruit ....
Who but a dunce would have any interest in knowing the format of the input file or the nature of the data contained therein ? One can (PERHAPS) divine that from analyzing the code or the intestines of a sheep slaughtered for the occasion .... which, incidentally, appears to be how you're going to have to divine a problem description, at least for the time being. I did not find a problem description in the posting, in the code, or as a note in the .zip file. Perhaps it's there and I missed it, but I sure didn't see one.
Certainly one can determine from analysis what format the program EXPECTS the input file to be in ... but not necesssarily the actual format (which, in itself, could be the problem he speaks of - hence, the request that it be provided).
As for me, I prefer to both analyze the code (and the format and nature of the program input), and, if at all possible, see the program run under the watchful eye of the debugger. I strongly believe in working with debuggers, and especially this World-Class debugger we are so fortunate to have in VS.
Oh, and yeah, you will have to analyze the code or the sheep's intestines to determine the intent of the code. Admittedly I may have missed something, but the only comment I saw was "//end of func" several times over.
So be my guest 'Fruit, have at it.
Best wishes.
bill
Last edited by ThermoSight; March 21st, 2011 at 07:57 PM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.