Uhhh... Elysia that gives me a couple of errors, such as:
Code:
1>c:\documents and settings\michael (2)\my documents\visual studio 2008\projects\formula helper\main.cpp(125) : error C2872: 'wstring' : ambiguous symbol
1> could be 'c:\documents and settings\michael (2)\my documents\visual studio 2008\projects\formula helper\formula helper.h(17) : std::basic_string<_Elem,_Traits,_Ax> wstring'
1> with
1> [
1> _Elem=wchar_t,
1> _Traits=std::char_traits<wchar_t>,
1> _Ax=std::allocator<wchar_t>
1> ]
1> or 'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2212) : std::wstring'
1>c:\documents and settings\michael (2)\my documents\visual studio 2008\projects\formula helper\main.cpp(126) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const char [2]' (or there is no acceptable conversion)
1> c:\program files\microsoft visual studio 9.0\vc\include\xstring(914): could be 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const std::basic_string<_Elem,_Traits,_Ax> &)'
1> with
1> [
1> _Elem=wchar_t,
1> _Traits=std::char_traits<wchar_t>,
1> _Ax=std::allocator<wchar_t>
1> ]
1> c:\program files\microsoft visual studio 9.0\vc\include\xstring(919): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const _Elem *)'
1> with
1> [
1> _Elem=wchar_t,
1> _Traits=std::char_traits<wchar_t>,
1> _Ax=std::allocator<wchar_t>
1> ]
1> c:\program files\microsoft visual studio 9.0\vc\include\xstring(924): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(_Elem)'
1> with
1> [
1> _Elem=wchar_t,
1> _Traits=std::char_traits<wchar_t>,
1> _Ax=std::allocator<wchar_t>
1> ]
1> while trying to match the argument list '(wstring, const char [2])'
1>c:\documents and settings\michael (2)\my documents\visual studio 2008\projects\formula helper\main.cpp(129) : error C2440: 'type cast' : cannot convert from 'wstring' to 'LPARAM'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
I don't know what I did wrong, I defined "wstring" in my header file, and then tried to use it in my code. Did I do something stupid?