see these class:
(sorry the indention, but i can't use 'TAB' key)
#define MY_BUFSIZE 1024
using namespace std;
string Title() //the problem seems to be here, but no erro message here
GetWindowText(GetForegroundWindow(), pszOldWindowTitle, GetWindowTextLength(GetForegroundWindow()) + 1);
void Title(string title) //these procedure works fine
and heres how i use it:
int _tmain(int argc, _TCHAR* argv)
string b =string(a.Title());
cout << "Title: " << b << endl; //i get 1 problem in second '<<'
1 - "error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)";
2 - " IntelliSense: no operator "<<" matches these operands".
what is wrong with cout???? isn't the 1st time that i get these type of error, but i continue without understand why
can anyone explain to me?