我自己定义了一个对话框类,在其中添加类一个编辑框并为它添加了一个成员变量。但我在其他函数(ONDRAW)中为什么不能访问这个变量.他的提示为:
chininput' : undeclared identifier
 left of '.m_ChinInput' must have class/struct/union type
其中chininput为我自定义的对话框类对象

解决方案 »

  1.   

    我自己定义了一个对话框类,在其中添加了一个编辑框并为它添加了一个成员变量。但我在其他函数(ONDRAW)中为什么不能访问这个变量.他的提示为:
    chininput' : undeclared identifier
     left of '.m_ChinInput' must have class/struct/union type
    其中chininput为我自定义的对话框类对象
      

  2.   

    没有include对话框的头文件吧?
      

  3.   

    可以在view的头文件中定义
    也可以在view的成员函数中(临时变量)
    看你的要求了
      

  4.   

    This error can occur when the left operand is an undefined variable. Undefined variables have type int.