what does “error : a nonstatic member reference must be relative to a specific object” mean?

EncodeAndSend is not a static function, which means it can be called on an instance of the class CPMSifDlg. You cannot write this: CPMSifDlg::EncodeAndSend(/*…*/); //wrong – EncodeAndSend is not static It should rather be called as: CPMSifDlg dlg; //create instance, assuming it has default constructor! dlg.EncodeAndSend(/*…*/); //correct

What are all the member-functions created by compiler for a class? Does that happen all the time?

C++98/03 If they are needed, the compiler will generate a default constructor for you unless you declare any constructor of your own. the compiler will generate a copy constructor for you unless you declare your own. the compiler will generate a copy assignment operator for you unless you declare your own. the compiler will generate … Read more

Operator overloading : member function vs. non-member function?

If you define your operator overloaded function as member function, then the compiler translates expressions like s1 + s2 into s1.operator+(s2). That means, the operator overloaded member function gets invoked on the first operand. That is how member functions work! But what if the first operand is not a class? There’s a major problem if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)