I'm using VisualC++ 4.0.
I'm having a hard time trying to write an array to a list.
I get a "cannot convert parameter 2 from 'char' to 'const char *" error when I try to compile it.
Here's the declaration of the array:
Here's how I'm trying to put it in a list. The list gets passed to a different application later:
I'm having a hard time trying to write an array to a list.
I get a "cannot convert parameter 2 from 'char' to 'const char *" error when I try to compile it.
Here's the declaration of the array:
Code:
char bconf[MAXBND+1]; /* Bond CONFormation: ' ',c,t,C,T,E,Z */
Here's how I'm trying to put it in a list. The list gets passed to a different application later:
Code:
char CFbconf[1000];//bconf[MAXBND + 1]
for (i = 0 ; i <= MAXBND + 1 ; i++) {
if (strlen(CFbconf) > 1) {
strcat(CFbconf,",");
}
strcat(CFbconf,bconf[i]);
}