Hardeep Singh
April 26th, 1999, 08:35 AM
I'm using CStringArrays in my program, and I've written a routine to sort them. I know the internal code works, because I had tested it. But when I make it a function with the following prototype:
void sort(CStringArray,int);
I get the following compiler error:
"Cannot convert parameter 1 from 'class CStringArray' to 'class CStringArray'"
How the hell do you explain that?
Please, this may sound funny, but it's a serious problem. Right now I'm compelled to paste the code for my sort routine everywhere I need it... How do I get rid of this silly error?
void sort(CStringArray,int);
I get the following compiler error:
"Cannot convert parameter 1 from 'class CStringArray' to 'class CStringArray'"
How the hell do you explain that?
Please, this may sound funny, but it's a serious problem. Right now I'm compelled to paste the code for my sort routine everywhere I need it... How do I get rid of this silly error?