I need to copy a value into a char * field.
I am currently doing this
strcpy(cm8link. type[count],"13");
but I get an error of
error C2664: 'strcpy' : cannot convert parameter 1 from 'const char' to
'char *'
this used to when it was just cm8link.type but it errors when I make it
cm8link.type[count]
first of all why?
secondly how can i get the value into the field for this array
occurrence?
Thanks
Jake
I am currently doing this
strcpy(cm8link. type[count],"13");
but I get an error of
error C2664: 'strcpy' : cannot convert parameter 1 from 'const char' to
'char *'
this used to when it was just cm8link.type but it errors when I make it
cm8link.type[count]
first of all why?
secondly how can i get the value into the field for this array
occurrence?
Thanks
Jake
Comment