Can anyone please tell me why including a new-style header might give completely different results as compared to including the old-style header in the following fairly trivial case ? Using VC++ 6, I write :
class CMyLog : public ofstream
CMyLog& operator<<(const char * ptr)
mylog << "hello world";
using namespace std;
Now the mylog file contains the numeric value of a pointer !
Can anyone please tell me what is going on ? I need urgent help.