Vlatko
Oct 9th, 2000, 03:28 PM
I am making a kind of a notepad app(no MFC).I use this to open a file:
#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() );
The lines marked "//this" make my app 120 KB bigger.(from 36 to 156 KB)
Why is this happening?
#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() );
The lines marked "//this" make my app 120 KB bigger.(from 36 to 156 KB)
Why is this happening?