Hi all,
Attached is a popup that I created.
The errors I get are:
SetDlgItemInt: Instruction failed error code 1421: Control ID not found and
GetDlgItemInt: Instruction failed error code 1421: Control ID not found
The popup compiles and runs with all controls being displayed.
I can enter data into each control.
However, the two functions to load and save the data is failing because of the above.
You can see that the control ids are there.
Any suggestions?
GetDlgItemInt (http://msdn.microsoft.com/en-us/library/ms645485(VS.85).aspx) and SetDlgItemInt (http://msdn.microsoft.com/en-us/library/ms645485(VS.85).aspx) both expect the control to be identified with a control identifier, and you are passing a HWND (returned by GetDlgItem (http://msdn.microsoft.com/en-us/library/ms645481(VS.85).aspx)).
Sorry, I miss read the SDK parameter definitions. Thanks Steve