I am making a kind of a notepad app(no MFC).I use this to open a file:
The lines marked "//this" make my app 120 KB bigger.(from 36 to 156 KB)Code:#include <string> #include <fstream> using namespace std; .... string all,got; ifstream in(filename); //this while(getline(in,got))//this { all += got + "\r\n";//this } SendMessage(e,WM_SETTEXT,0,(LPARAM)all.c_str() );
Why is this happening?




mail:
Reply With Quote