void CMy11Dlg: : OnOK ()
{
CFont font;
Font. CreatePointFont (200, "tahoma");
GetDlgltem (IDC_STATIC) - & gt; SetWindowText (" Hello VisualC++ ");
GetDlgltem (IDC_STATIC) - & gt; The SetFont (& amp; The font);
//CDialog: : OnOK ();
}
Column 11 DLG. Exe - 3 error (s), and 0 warning (s)
,,, don't know why
CodePudding user response:
IDC_STATIC isn't too much you into IDC_STATIC1 IDC_STATIC2 IDC_STATIC3 ahCodePudding user response:
E: \ vc + + \ \ column column 11 11 DLG CPP (176) : error C2065: 'GetDlgltem: undeclared identifierE: \ vc + + \ \ column column 11 11 DLG CPP (176) : error C2227: left of '- & gt; SetWindowTextA 'must point to a class/struct/union
E: \ vc + + \ \ column column 11 11 DLG CPP (177) : error C2227: left of '- & gt; The SetFont 'must point to a class/struct/union
Error executing cl. Exe.
Well, and add the stamp on the 12 more
CodePudding user response:
Whether to establish a dialog project, or some header file not automatically included