1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
vector<string> text_file;
MessageBox(NULL,"Open Text File and Read",NULL,MB_OK);
ifstream ifs( "..\\output.txt" );
string temp;
while( getline( ifs, temp ) )
text_file.push_back( temp );
MessageBox(NULL, "Push_backs done", NULL, MB_OK);
strToName = text_file[1].c_str();
MessageBox(NULL,"Variables defined - strToName",NULL,MB_OK);
strToEmail = text_file[1].c_str();
MessageBox(NULL,"Variables defined - strToEmail",NULL,MB_OK);
pszSubject = (LPSTR)text_file[4].c_str();
MessageBox(NULL,"Variables defined - pszSubject",NULL,MB_OK);
pszSender = (LPSTR)text_file[0].c_str();
MessageBox(NULL,"Variables defined - pszSender",NULL,MB_OK);
|