News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Dialog problem

Started by z941998, March 14, 2011, 01:51:04 PM

Previous topic - Next topic

z941998

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?

MichaelW

GetDlgItemInt and SetDlgItemInt both expect the control to be identified with a control identifier, and you are passing a HWND (returned by GetDlgItem).

eschew obfuscation

z941998

Sorry, I miss read the SDK parameter definitions.   Thanks Steve