i'm trying to use the wfstream version of fstream, but its doing something wierd i don't understand:
when i compile, i get the following compiler error:
using namespace std;
bool MyFile::writeFile(const unsigned short* path)
//checks file is open, writes some variables out with <<
i'm not sure whats going on there, but it looks like the open member of wfstream takes a char* parameter instead of a unsigned short* ? How is that supposed to make sense !?
error C2664: 'void __thiscall std::basic_ofstream<unsigned short,struct std::char_traits<unsigned short> >::open(const char *,int)' : cannot convert parameter 1 from 'const unsigned sh
ort *' to 'const char *'
Any explanations would be appreciated.
(using winXP and vc++ 6)