DAMN! I still get the same error about the MessageBox not being able to handle 4 parameters. Ok, here's my code, this is very basic stuff, be kind
Code:
void CWinCubeDlg::OnCube()
{
// TODO: Add your control notification handler code here
char buff[1024];
int answer;
answer = Cube(m_value);
sprintf(buff, "The value of %i is: %i", m_value, answer);
MessageBox(NULL, buff, "The results...", MB_OK);
}
int Cube(int x)
{
int x_cubed;
x_cubed = x * x * x;
return x_cubed;
}
Once again, it states that, "error C2660: 'MessageBoxA' : function does not take 4 parameters."