Hello,
I'm doing a program where I'm getting an annoying error; here's a sample:
Code:
WCHAR GuidString[39] = { 0 };
unsigned int i, k;
std::string str;
//Code goes here without errors
str.append(" InterfaceGUID[%d]:\t %ws\n", i, GuidString);
In this LAST line I get the constant error:
1>.\test.cpp(84) : error C2664: 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::append(const std::basic_string<_Elem,_Traits,_Ax> &,unsigned int,unsigned int)' : cannot convert parameter 3 from 'WCHAR [39]' to 'unsigned int'
Does anyone has a clue how I can fix this?
Regards,
Kepler