1
Comment imprimer correctement un CString à messagebox? Rien n'apparaît ..Imprimer CString à MessageBox
CString testing;
testing = ExecuteExternalProgram();
MessageBox(NULL, testing, L"test", MB_OK);
Comment imprimer correctement un CString à messagebox? Rien n'apparaît ..Imprimer CString à MessageBox
CString testing;
testing = ExecuteExternalProgram();
MessageBox(NULL, testing, L"test", MB_OK);
essayez AfxMessageBox.
http://msdn.microsoft.com/en-us/library/as6se7cb(v=vs.71).aspx
lpszText Points à un objet CString ou chaîne à zéro terminal contenant le message à afficher dans la zone de message.
ou faire:
MessageBox (NULL, testing.GetBuffer(), L "test", MB_OK);
L'erreur indique: Erreur erreur C3861: 'AfxMessageBox': identifiant introuvable – karikari
puis-je voir plus de votre code? Avez-vous inclus afxwin.h? – P47RICK
J'ai inclus le afxwin.h. Mais cette erreur apparaît: Erreur Erreur irrécupérable C1189: #erreur: WINDOWS.H déjà inclus. Les applications MFC ne doivent pas #include –
karikari