I am somewhat new to windows programming.
I have a project that uses a TInputDialog instance to ask for a simple piece of information. All worked well until about 2 weeks ago. My resource file got corrupted and
I had to rebuild much of it. As I recall (and in looking back at the last good copy of the resource file) there is nothing (except the includes for the inputdia.rh & inputdia.rc files) needed in the resource file for TInputDialog.
Now I receive the following error messagebox when Execute is called for the object:
Execute fail for window Input the Date for Delete Records
OK to resume?
One other problem I just noticed (that is surely related), I get a similar error message on my call to a TPrinter object. ("Create" fail and no window name.) -- I haven't looked closely at the TPrinter code but I'm sure it is creating a simple dialog to show print progress.
I receive no errors/warnings on compile & link. All else seems to operate properly, even other TDialog objects I use.
My resource file contains the owl\inputdia.rh and owl\inputdia.rc includes.
TInputDialog* dialog = new TInputDialog(this, "Input the Date for Delete Records",
"Delete the records before and on (MM/DD/YYYY):",
int result = dialog->Execute();
if (result == IDOK)