I'm using Visual C++ 6.0
I found out about an issue with CStdioFile::ReadString reporting EOF incorrectly if the last line in a file is a multiple of 128 without a newline character following it. I read about it online a while back, but I can't find that page anymore. A workaround that I did when this came up was to change my while loop from
while(inFile.ReadString(inLine)||inLine != "")
as it appears it reports EOF incorrectly but still puts the data in the string variable passed.
The problem is I have about 500 of these while loops scattered across different programs and I don't want to change them all to that, not to mention the other variations of EOF checking I do.
Is anyone familiar with this issue? Is there some patch that I can install to fix this?
>>>> The problem is I have about 500 of these while loops scattered across different programs and I don't want to change them all to that
You could derive from CStdioFile and provide a fix of ReadString
This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms. Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go. MFC has a very cool system for handli…
Load and Save to file, Document-View interaction inside the SDI.
Continuing from the second article about sudoku.
Open the project in visual studio.
From the class view select CSudokuDoc and double click to open the header …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download.
This will be demonstrated using Microsoft Expression Encoder 4.