Bonjour,
J'ai une variable de type WCHAR , est-il possible que je la converti en string
Merci
Version imprimable
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: :cry:
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
Bonjour,
en fait voici la situation,
Notre application est faite avec MFC. j'ai un code ou il y a de l'Unicode. et j'ai besoin d'impl�menter ce code dans mon application.
J'ai mis le code dans un attachement
La partie du code est:
static void Print_ExtTextOutW( ENHMETARECORD* pMetaRecord )
Merci
Mirna
la remarque de hiko-seijuro est int�ressante.Citation:
Envoy� par hiko-seijuro
De quelle version de Visual C++ 2005 disposes-tu ? la gratuite ou la pro ?
Bonjour Nico,
La pro
Mirna
autre question, dans tes options de projets, tu lies bien avec les MFC en dynamique ?
fait un click droit sur le projet puis clique sur les propri�t�s> General > Character Set > Not set, pour d�fnir le jeux ANSI
Nico,
dans le setting du projet j'ai: Use MFC in a shared DLL
Merci
Mirna