Compiling on Solaris with gcc, the following code produces an error:
unsigned char* p = new unsigned char[strlen(word)];
memcpy(p, word, strlen(word)+1);
CString crypt = e.code(p);
The compile error is: Error: Cannot use unsigned char* to initialize CString.
How do I fix this ? (This code is based on the suggestion in a previous question.) Thanks.