Click here to Skip to main content
15,916,293 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: unexpected eof while looking for precompiled header directive? Pin
Christian Graus16-Apr-02 17:13
protectorChristian Graus16-Apr-02 17:13 
GeneralEnable/Disable a Message :: MFC Pin
valikac16-Apr-02 16:18
valikac16-Apr-02 16:18 
GeneralRe: Enable/Disable a Message :: MFC Pin
Shog916-Apr-02 16:50
sitebuilderShog916-Apr-02 16:50 
GeneralRe: Enable/Disable a Message :: MFC Pin
Jon Hulatt17-Apr-02 3:11
Jon Hulatt17-Apr-02 3:11 
QuestionHow to adjust the size of the scrollbox on a scrollbar? Pin
Feng Qin16-Apr-02 14:49
Feng Qin16-Apr-02 14:49 
GeneralWeb page parsing Pin
Johnny Smith Weston16-Apr-02 14:38
Johnny Smith Weston16-Apr-02 14:38 
GeneralMS STL string min size of 31 bytes? WTF! Pin
Todd Smith16-Apr-02 12:50
Todd Smith16-Apr-02 12:50 
GeneralRe: MS STL string min size of 31 bytes? WTF! Pin
Joaquín M López Muñoz16-Apr-02 13:02
Joaquín M López Muñoz16-Apr-02 13:02 
This is just an internal optimization trick. _MIN_SIZE is the minimum capacity a basic_string<E> can have. The purpose of this boundary is
  • to avoid memory fragmentation due to huge amounts of tiny blocks being reserved
  • and to provide a reasonable starting size that a significant portion of strings will fit in without further reallocations.
So for small-sized types (like char), the minimum capacity is no less than 31 bytes, while for larger types we moderate our first reservation to 7*sizeof(E) bytes.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: MS STL string min size of 31 bytes? WTF! Pin
Todd Smith16-Apr-02 13:11
Todd Smith16-Apr-02 13:11 
GeneralRe: MS STL string min size of 31 bytes? WTF! Pin
Tim Smith16-Apr-02 13:12
Tim Smith16-Apr-02 13:12 
GeneralRe: MS STL string min size of 31 bytes? WTF! Pin
Todd Smith16-Apr-02 13:16
Todd Smith16-Apr-02 13:16 
GeneralRe: MS STL string min size of 31 bytes? WTF! Pin
Tim Smith16-Apr-02 13:18
Tim Smith16-Apr-02 13:18 
Generalifstream as a parameter Pin
Steve L.16-Apr-02 11:21
Steve L.16-Apr-02 11:21 
GeneralRe: ifstream as a parameter Pin
Shog916-Apr-02 11:34
sitebuilderShog916-Apr-02 11:34 
GeneralRe: ifstream as a parameter Pin
Christian Graus16-Apr-02 11:41
protectorChristian Graus16-Apr-02 11:41 
GeneralRe: ifstream as a parameter Pin
Steve L.16-Apr-02 12:05
Steve L.16-Apr-02 12:05 
GeneralRe: ifstream as a parameter Pin
Joaquín M López Muñoz16-Apr-02 12:11
Joaquín M López Muñoz16-Apr-02 12:11 
GeneralRe: ifstream as a parameter Pin
Christian Graus16-Apr-02 12:13
protectorChristian Graus16-Apr-02 12:13 
GeneralRe: ifstream as a parameter Pin
Joaquín M López Muñoz16-Apr-02 12:20
Joaquín M López Muñoz16-Apr-02 12:20 
GeneralRe: ifstream as a parameter Pin
Christian Graus16-Apr-02 12:33
protectorChristian Graus16-Apr-02 12:33 
GeneralRe: ifstream as a parameter Pin
Joaquín M López Muñoz16-Apr-02 12:43
Joaquín M López Muñoz16-Apr-02 12:43 
GeneralRe: ifstream as a parameter Pin
Christian Graus16-Apr-02 12:49
protectorChristian Graus16-Apr-02 12:49 
GeneralRe: ifstream as a parameter Pin
Christian Graus16-Apr-02 12:12
protectorChristian Graus16-Apr-02 12:12 
GeneralRe: ifstream as a parameter Pin
Steve L.16-Apr-02 14:54
Steve L.16-Apr-02 14:54 
GeneralConverting a Win32 Static Library to a DLL for VB Pin
SanShou16-Apr-02 10:49
SanShou16-Apr-02 10:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.