I compiled an WinMain CalcCRC.exe which produces a 4 digit check-sum of a file (exe : CalcCRC.exe myfile.txt).
When executed in DOS window(i.e. C:>CalcCRC.exe myfile.txt), my exec computes a different result that the one produced when executed with an _spawnlp("CalcCRC.exec","myfile.txt", NULL) API in a VC6 app.
How is this possible ?
How can the iostream which reads the file can behave in a different way ?
What can I do to insure the same result both way ?
It puzzles me
When executed in DOS window(i.e. C:>CalcCRC.exe myfile.txt), my exec computes a different result that the one produced when executed with an _spawnlp("CalcCRC.exec","myfile.txt", NULL) API in a VC6 app.
How is this possible ?
How can the iostream which reads the file can behave in a different way ?
What can I do to insure the same result both way ?
It puzzles me