I myself am pretty new to C++, but I believe  is good indication that you're dealing with arrays. The for loop also points into that direction.
Your code seems a little incomplete to me...are there other statements in the for loop cause your closing brace is missing.
full code is like this. not understand the function in bold. is that array in Reader_F
long l_ret_value = EnumerateReader(Reader_F);
for(int i = 0; i< Reader_F->ul_NbRdr; i++)
DevcName = Reader_F[i].cRdrName;
idx = m_RdrNameCBM.AddString(DevcName);
Reader_F is the array that can store 100 elements of the type
EnumerateReader does: it stores a certain amount of objects (type
RdrName) and returns in
l_ret_value how many objects are stored.
CHAR* DevcName; ->
DevcName is a variable that has the type
CHAR*. It basically is a c string
types are important in C++. You can't have a variable without saying exactly what type it has
Reader_F->ul_NbRdr may look confusing. It uses the fact that an array can be implicitly converted to a pointer to the first element. You can also write it like so
Last edited on