S
sean.farrow
Hi:
I have the following code:
std::wstring Process =ProcessToFind;
//this is an lpwstr passed in to my function.
std::wstring test =boost::filesystem::wpath(szModName).filename();
//note: szModNameisretrived from a win32 api function.
When I do:
Process.Comparetest);
I get:
1>c:\work\access for everyone\dragonspeak\dragonspeak.cpp(45) : error
C2039: 'Compare' : is not a member of
'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> ]
I am using visual studio 2005, and this is the only error.
Anyone know whats happening, and how to fix this?
Any help much apreciated.
Sean
I have the following code:
std::wstring Process =ProcessToFind;
//this is an lpwstr passed in to my function.
std::wstring test =boost::filesystem::wpath(szModName).filename();
//note: szModNameisretrived from a win32 api function.
When I do:
Process.Comparetest);
I get:
1>c:\work\access for everyone\dragonspeak\dragonspeak.cpp(45) : error
C2039: 'Compare' : is not a member of
'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> ]
I am using visual studio 2005, and this is the only error.
Anyone know whats happening, and how to fix this?
Any help much apreciated.
Sean