Re le bonjour, j'ai un probleme pour la multiplication de deux nombres. Voici mon code, l'un est un entier et l'autre un float seulement je n'arrive pas le calculer et a afficher le resultat.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
int ISC;
CString Visc;
CString str2;
float ktq=0.00004;
 
void CSolararray::OnChangeEditIsc() 
{
GetDlgItem(IDC_EDIT_ISC)->GetWindowText(Visc);
ConvertCString(Visc,ISC);										str2.Format("%d",ISC * ktq);
SetDlgItemText(IDC_STATIC_A, str2);