Error in sql command when using ado in VC++ and unicode
Database
1
Posts
1
Posters
0
Views
1
Watching
-
my database on sql server 2005, and i was convert my project VC++ to unicode, the problem is : when i try to read a field value string from recordset the data is "??????" the code is:
_variant_t vFieldName (strFieldName);
_variant_t ret = m_rs->GetFields ()->GetItem (vFieldName)->GetValue();
CString str = (wchar_t *)(_bstr_t)vVal;:mad: when the language string is english ok but when it in other language the string is "???????"
mazen keeikati