To answer the original question:
Is there an easy way to perform the following?
Code:
CString s;
CryptoPP::Integer n;
s << n;
Just use the method Format:
Code:
CString s;
CryptoPP::Integer n;
s.Format("%d", n);
Now, probably this isn't exactly correct. I don't know that CryptoPP::Integer is, but I suppose it's a custom class. If it has an operator int() or a ToInt() method, your code should actually look like this:
Code:
s.Format("%d", (int)n);
or
Code:
s.Format("%d", n.ToInt());
or something like that. I hope you got the idea.