|
-
December 3rd, 2004, 12:03 AM
#1
simple nested loop unable to compile in vc.net
i am using IP Works v6 liabrary to develop an application related to networking.
it has a dns component with one of the methods as Query. it queries about the domain name servers for a particular domain name and if gets response from default server, returns a 2d array with following identities:
record count --- int --- row counts
record field count --- int --- column count for respective row.
record field type name, record field name, record field value --- string --- the contents of respective columns in a row.
in demo program coded in c#, it is done simply as a 2d array is read with nested for loop counting for each row and respective each column.
in vc++.net, i have coded as:
for(int i =1; i!= VPNdns->RecordCount; i++){
for(int j=1; j!= VPNdns->RecordFieldCount; j++){
VPNdns->FieldIndex = j;
if (j == 1){
VPNtextBox->AppendText(VPNdns->RecordTypeName[i]);
}
VPNtextBox->AppendText(VPNdns->RecordFieldName[i]);
VPNtextBox->AppendText(VPNdns->RecordFieldValue[i]);
}
}
it is compiling and gives error as pointer arithmetics cannot be performed with pointers record field count, type name, name and value.
kindly, help me...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|