Declarations help
-
Hi, can anyone pls explain 2 me what these public declarations are about? Wat values are being returned and why they are declared in such a way. thanks... int SetActivePage (int nPage); int SetActivePage (CMyPropDialog* pPage); CMyPropDialog *GetPage (int nPage); CMyPropDialog *GetActivePage (void);
-
Hi, can anyone pls explain 2 me what these public declarations are about? Wat values are being returned and why they are declared in such a way. thanks... int SetActivePage (int nPage); int SetActivePage (CMyPropDialog* pPage); CMyPropDialog *GetPage (int nPage); CMyPropDialog *GetActivePage (void);
You aren't serious are you? This is elementary C++ programming. I strongly suggest you find a beginner C++ book and read it. In the meantime, these are overloaded functions. And the asterix means that the object being passed/returned is a "pointer." (I now feel like Dr. Evil explaining the obvious.) Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke