Paul Grenyer wrote:
I don't think you'll find .Format() is type safe. Where as std::stringstream is.

Ah yes that's true.

However, a good design would have all your back-end processing written in standard C++ seperate from your COM object (in a static lib or dll), so that you can unit test it easily without having to go through the COM layer.

Well that would be useful - if I did any unit testing :)

Then you should have the COM layer on to which takes the std::string from the backend processing and converts it where necessary. You should

Well ok but how would I do the conversion? I don't know of any conversion routines between std::basic_string<char> and std::basic_string<wchar_t>. I can start using 3rd party libraries (iconv comes to mind) but the whole idea was to keep conversions as simple and transparant as possible, and use as much of ATL's unicode as possible.



cheers,

roel





Reply via email to