I'm going to translate below logic into vb. I confuse what the logic trying to get. What is the relation between DevcName and the Reader_F., and what the [100] means.
Thanks!
1 2 3 4 5 6 7 8
RdrName Reader_F[100];
long l_ret_value = CBM_EnumerateReader(Reader_F);
CHAR* DevcName;
int idx;
for(int i = 0; i< Reader_F->ul_NbRdr; i++)
{
DevcName = Reader_F[i].cRdrName;
Reader_F is the array that can store 100 elements of the type RdrName
That's what 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
[EDIT] 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 Reader_F[0].ul_NbRdr
[/EDIT]