slt,je trouve un probl�me au niveau de la conversion d'un DWORD en const char* ( je travaille sous vc++ avec les MFC).
je sai comment convertir un CString en const char *. Donc j'essaye s'il y a une possibilit� de convertir DWORD en CString.
quelqu'un peut m'aider?
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11 DWORD adress; CString str; CWnd* ptr; CIPAddressCtrl* IP_Control; ptr = GetDlgItem(IDC_IPADDRESS1);//pointeur sur le champ de l'adresse IP IP_Control=(CIPAddressCtrl*) ptr;//opération de casting IP_Control->GetAddress(adress); adress=str ??? const char* ip_adress=(char*)LPCTSTR(str);//conversion d'un string en const char *
Partager