Hi,
I have just started programming using microsoft Visual C++ 6.0.
I want to use Vector and String in my code and so I included <vector> and <string>, but I get the error message " 'std' : is not a class or namespace name ".
The code looks like this:
include# <string>
include# <vector>
void CDataAnalyserView::OnFileLoad()
{
CFileDialog dlg(true);
dlg.DoModal();
if (dlg.GetFileTitle() != ""
{
std::string filename = dlg.GetPathName();
}
}
I've read there is a bug in Visual C++ 6.0 that the namespace has not been defined and to work around the problem <cstdlib> should be included in namespace std like this:
namespace std
{
include# <cstdlib>
};
Maybe this is a stupid question but where do I put this code?
I have just started programming using microsoft Visual C++ 6.0.
I want to use Vector and String in my code and so I included <vector> and <string>, but I get the error message " 'std' : is not a class or namespace name ".
The code looks like this:
include# <string>
include# <vector>
void CDataAnalyserView::OnFileLoad()
{
CFileDialog dlg(true);
dlg.DoModal();
if (dlg.GetFileTitle() != ""
{
std::string filename = dlg.GetPathName();
}
}
I've read there is a bug in Visual C++ 6.0 that the namespace has not been defined and to work around the problem <cstdlib> should be included in namespace std like this:
namespace std
{
include# <cstdlib>
};
Maybe this is a stupid question but where do I put this code?