To answer the original question:
Just use the method Format:Is there an easy way to perform the following?
Code:CString s; CryptoPP::Integer n; s << 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:CString s; CryptoPP::Integer n; s.Format("%d", n);
orCode:s.Format("%d", (int)n);
or something like that. I hope you got the idea.Code:s.Format("%d", n.ToInt());




Marius Bancila
Reply With Quote