The article you mention is probably:
FIX: ReadString Gives Wrong Result Reading Long Strings
http://support.microsoft.c
But it refers to a "retired" issue, one that was fixed years ago. You can single-step into the CStdIoFile:ReadString code and see if it matches the code in that article. You can, as, itsme said, derive from StdioFile and override the ReadString function with one that does not have the bug.





by: itsmeandnobodyelsePosted on 2009-04-04 at 05:36:57ID: 24067108
>>>> 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 in that derived class. So you would need to replace CStdioFile by CMyStdioFile everywhere and include your class header in stdafx.h , it perhaps is the better solution.
>>>> Is there some patch that I can install to fix this?
I actually never heard of this bug (and I don't use CStdioFile myself for at least 10 years - but std::ifstream or std::ofstream) but if it wasn't fixed in one of the latest service packs of VC6 (which I assume you already have installed) it probably won't be fixed anymore as VC6 was released in 1998 and there are three major releases of VC compiler released later.