((CComboBox*)GetDlgItem(IDC_COMBO2))->AddString("1000以下");
((CComboBox*)GetDlgItem(IDC_COMBO2))->AddString("1000元-2000元");
((CComboBox*)GetDlgItem(IDC_COMBO2))->AddString("2000-3000");
((CComboBox*)GetDlgItem(IDC_COMBO2))->AddString("3000以上");
这段有问题吗?
为什么编译的时候说错呢
‘error C2065: 'IDC_COMBO2' : undeclared identifier
F:\vc++程序\lesson8\Prop\Prop3.cpp(59) : error C2227: left of '->AddString' must point to class/struct/union
F:\vc++程序\lesson8\Prop\Prop3.cpp(60) : error C2227: left of '->AddString' must point to class/struct/union
F:\vc++程序\lesson8\Prop\Prop3.cpp(61) : error C2227: left of '->AddString' must point to class/struct/union
F:\vc++程序\lesson8\Prop\Prop3.cpp(62) : error C2227: left of '->AddString' must point to class/struct/union
Error executing cl.exe.
Prop.exe - 5 error(s), 0 warning(s)
慕容3067478
红颜莎娜
相关分类