Hi,
I'm using the VC++ 6.0 compiler and am getting numerous error messages when trying to pass a string as a parameter to a constructor. I've tried a small test and I still get the same error:
#include<string>
class MyClass
{
public:
MyClass(const string &fileName); // error here
};
MyClass::MyClass(const string &fileName)
{
// do stuff
}
When I try to compile this, it gives me several errors about the indicated line, including C2629, C2238. However, if I change the string to an int, it compiles fine. I'd be grateful for any advice.
Cheers