Petr Stejskal
April 2nd, 1999, 06:13 AM
#include <math.h>
void CMyDlg::OnButton2()
{
// m_a = 12.0; // if this is a local variable, then is it ok...
double c = 3.141 * m_a;
double b = cos(c);
CString s;
s.Format("%f, %f", m_a, b);
AfxMessageBox(s);
}
The problem is that the program behaves unlikely in debug and release mode,
if the m_a is a local variable then it is ok
Any idea?
thanks
void CMyDlg::OnButton2()
{
// m_a = 12.0; // if this is a local variable, then is it ok...
double c = 3.141 * m_a;
double b = cos(c);
CString s;
s.Format("%f, %f", m_a, b);
AfxMessageBox(s);
}
The problem is that the program behaves unlikely in debug and release mode,
if the m_a is a local variable then it is ok
Any idea?
thanks