![]() C will automatically make the size of the cstring variable one. With mfc share size is 50k but with static 140k. Es sollte immer INTMAX-1, denn auch wenn Sie nur 100megs RAM, virtueller Speicher speichern den rest. You can find out the size of the buffer (not the number of characters it contains, but its maximum size) with the capacity member function. If there is an API you are using that requires a C-string, you can use the c_str() member function of an std::string object to retrieve a char const* pointer to a you can use the c_str() member function of an std::string object memory buffer containing the encapsulated C string. A cstring variable is a partially filled array of characters with the null character 0. Is there a way to decrese size of regular DLL which use only CString and message map handling plus some com libs. Bis zu Ihrem verfügbaren Speicher oder INTMAX-1 (je nachdem welcher geringer ist). Std::cout // You will need this for std::string This said: #include // You will need this for strlen() Notice that in C++11 a string literal has type const char, and the conversion to char* (i.e.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |