Afternoon. I have an Event handler which I want to call the function OnBnClickedBuildFile()
I want this function to be able to return a Bool value to indicate whether it has succeeded or not.
afx_message void OnBnClickedBuildfile
to
afx_message bool OnBnClickedBuildfile
But when I try to compile, I get an error "C2440 Static Cast", and it highlights the line below as the source of the error
ON_BN_CLICKED(IDC_BUILDFILE, OnBnClickedBuildfile)
I assume it is possible to do what I am trying, so what do I need to change to get this to work ?
TIA,
K
I want this function to be able to return a Bool value to indicate whether it has succeeded or not.
afx_message void OnBnClickedBuildfile
to
afx_message bool OnBnClickedBuildfile
But when I try to compile, I get an error "C2440 Static Cast", and it highlights the line below as the source of the error
ON_BN_CLICKED(IDC_BUILDFILE, OnBnClickedBuildfile)
I assume it is possible to do what I am trying, so what do I need to change to get this to work ?
TIA,
K