slt, comment je peux convertir un CString en char*?j'ai essayé cela mai ca n'a pas marché. Je travaille sous VC++ avec les MFC.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 CString str; m_adresse_ip.GetWindowTextW(str); const char *ip_adress; ip_adress=(char*)LPCTSTR(str);//ip_adress=str.GetBuffer()
Merci de me répondre.
Partager