Bonjour,
J'ai une variable de type WCHAR , est-il possible que je la converti en string
Merci
Bonjour,
J'ai une variable de type WCHAR , est-il possible que je la converti en string
Merci
en string STL ? en String ^ manag�e ? en CString ?
Aller, je prend le pari:
Puisqu'il y a la balise [C++], il doit certainement s'agir de std::string
![]()
Bonjour,
en CString
J'ai fait �a:
WCHAR* pStringW;
CString cstring(pStringW);
cstring += " (CString)";
mais je compile bien mais le build me donne ces erreurs:![]()
LIST.OBJ : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)
LIST.OBJ : error LNK2001: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ)
LIST.OBJ : error LNK2001: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(char const *)" (??YCString@@QAEABV0@PBD@Z)
LIST.OBJ : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(unsigned short const *)" (??0CString@@QAE@PBG@Z)
Merci
Quel est le type de projet que tu as cr��? Tu utilises visual2005?
V�rifie que ton projet ne soit pas en Unicode.
je crois que CString fait partie des MFC donc si c'est visual express ca ne marchera pas :s
Partager