|Info About Microsoft Visual C++ 6.0|
Using the STL may cause a rash of warning messages. Warning messages that are identified as Warning C4786: are created when MSVC generates extremely long names that it uses for debugging purposes. The long names are generated by the template expansion process and the warning messages normally can be ignored. Since these warnings tend to hide more interesting warning/error messages, you may wish to suppress the warning. This can be done by adding the following line near the top of your source file: #pragma warning(disable:4786)
If you have one of the MSOE issue laptops then you should already have service pack 4 (there are problems with service pack 5, so I would suggest sticking with SP4) installed for Microsoft Visual C++ 6.0. If you are using MSVC60 on another machine, you should apply the appropriate Microsoft service pack.
You may follow these steps to check to make sure that you do have SP4 installed:
Note: This fix should already be done for students with the Evo laptop image.
The getline function that is supplied in the string library requires the user to hit enter twice (not fun). This can be fixed by editing line 165 of the file: c:\Program Files\Microsoft Visual Studio\VC98\Include\STRING
Line 165 should be:
_I.rdbuf()->snextc();If you would prefer to just copy an already corrected copy of the STRING file, see Dr. Welch's getline Method Patch webpage.
The sort member function from the STL list class looses data if the list has more than 32,768 elements. While this speeds up the time it takes to sort, it tends to make the function useless. This can be fixed by editing line 371 of the file: c:\Program Files\Microsoft Visual Studio\VC98\Include\LIST
Line 371 should be:
_A[_I - 1].merg(_X, _Pr);instead of:
Dinkumware's website also suggests that you may want to modify the value of _MAXN from 15 to something like 25. This will increase the performance of the function for large containers.
MSVC 5.0 Related Issues
Since MSVC50 shares many similarities with MSVC60, you may also wish to consult Dr. Mark Sebern's webpage devoted to Microsoft VC++ 5.0 issues.
MFC and Debugger
|© 2000-2002 Dr. Christopher C. Taylor||Office: CC-27C||Phone: 277-7339||Last Updated: Wed Aug 14 17:24:08 2002|
|I am responsible for all content posted on these pages; MSOE is welcome to share these opinions but may not want to.|