两个窗体之间互相传递数据,dlg.m_sa是源窗体的CStringArray型数据,为什么字符数据传递可以成功,而CStringArray数据传递是总说m_sa CXX0017: Error: symbol "m_sa" not found,这是为何?CStringArray sa;
sa.Add("aa");
sa.Add("bb");
CSsGDlg dlg;
dlg.m_sa.Append(sa);
CString str;
str="aa";
dlg.str=str;

解决方案 »

  1.   

    倒底有没有m_sa啊,看你的程序定义成sa了啊?
      

  2.   

    m_sa定义在另一个窗体中了啊!
      

  3.   

    m_sa is not defined or it is not public!
      

  4.   

    Expression Evaluator Error CXX0017
    symbol not foundA symbol specified in an expression could not be found.One possible cause of this error is a case mismatch in the symbol name. Because C and C++ are case-sensitive languages, a symbol name must be given in the exact case in which it is defined in the source.This error can occur when trying to typecast a variable in order to watch the variable during debugging. The typedef declares a new name for a type, but it does not define a new type. The typecast attempted in the debugger requires the name of a defined type.Tips Make sure the symbol is already declared at the point in the program where it is being used.
    Use an actual type name to cast variables in the debugger, rather than a typedef defined name. 
    This error is identical to CAN0017.