例如GetCount, IsEmpty 等就没有.
输入的时候就没有提示, 写进去后编译出错.
我用的是VC6.0

解决方案 »

  1.   

    AttributesGetSize Gets the number of elements in this array. 
    GetUpperBound Returns the largest valid index. 
    SetSize Sets the number of elements to be contained in this array. 
    OperationsFreeExtra Frees all unused memory above the current upper bound. 
    RemoveAll Removes all the elements from this array. 
    Element AccessGetAt Returns the value at a given index. 
    SetAt Sets the value for a given index; array not allowed to grow. 
    ElementAt Returns a temporary reference to the element pointer within the array. 
    GetData Allows access to elements in the array. Can be NULL. 
    Growing the ArraySetAtGrow Sets the value for a given index; grows the array if necessary. 
    Add Adds an element to the end of the array; grows the array if necessary. 
    Append Appends another array to the array; grows the array if necessary 
    Copy Copies another array to the array; grows the array if necessary. 
    Insertion/RemovalInsertAt Inserts an element (or all the elements in another array) at a specified index. 
    RemoveAt Removes an element at a specific index. 
    Operatorsoperator [] Sets or gets the element at the specified index. 
      

  2.   

    GetCount, IsEmpty 哪来的?
      

  3.   

    MFC4.2版的CArray没有GetCount,IsEmpty成员函数。
    你可能用的是2002年的MSDN吧?那是MFC7.0的。
      

  4.   

    To: whale,
    我想你是对的.我装的是January 2002的MSDN. 实际上我在msdn.microsoft.com 也能找到这些成员函数.
      

  5.   

    应该都有中译本:Programming Visual C++
    by David J. Kruglinski, Scot Wingo, George ShepherdProgramming Windows With MFC
    by Jeff Prosise
      

  6.   

    对不起,贴错了应该是
    GetSize(), GetUpperBound()
      

  7.   

    你说的都有,#include <afxtempl.h>
      

  8.   

    To wwwllg & skyonline:已经 #include <afxtempl.h> , 仍然没有那些成员.