Hallo,
was bedeutet im folgenden CodeSchnipsel die letzte Zeile:
struct ListNumber
{
CString s;
BOOL b1;
BOOL b2;
};
typedef CArray ListNumberArray;
danke Ralf
Hallo,
was bedeutet im folgenden CodeSchnipsel die letzte Zeile:
struct ListNumber
{
CString s;
BOOL b1;
BOOL b2;
};
typedef CArray ListNumberArray;
danke Ralf
VC-Hilfe
Hi Ralf
Hier ist das, was MSDN dazu meint …
The simple array and list classes,CArray andCList, take two parameters: TYPE and ARG_TYPE. These classes can store any data type, which you specify in the TYPE parameter:
Fundamental C++ data types, such as int, char, and float
C++ structures and classes
Other types that you define
For convenience and efficiency, you can use the ARG_TYPE parameter to specify the type of function arguments. Typically, you specify ARG_TYPE as a reference to the type you named in the TYPE parameter. For example:
CArray myArray;
CList myList;
The first example declares an array collection, myArray, that contains ints. The second example declares a list collection, myList, that stores CPerson objects. Certain member functions of the collection classes take arguments whose type is specified by the ARG_TYPE template parameter. For example, the Add member function of class CArray takes an ARG_TYPE argument:
CArray myArray;
CPerson person;
myArray->Add( person );
Viele Grüße
Stefan.
Hi Stefan, besten Dank, viele Grüße Ralf