September 13th, 2013, 07:24 AM
CString class in non-MFC static library
I have a non-MFC static library which I share between a number of different projects, some non-MFC and some MFC. Currently the static library uses a typedef of std::wstring and std::string for UNICODE and non-UNICODE builds.
After discovering it's possible to use CString in non-MFC applications, by including atlstr.h header, I decided I'd rather that than using stl strings and having to keep converting between the different types. However, I seem to be struggling with linker errors when linking the library with a MFC application.
Does anyone know if this is possible? Can I create a non-MFC static library using CString from atlstr.h and link it with a MFC application?
Thanks in advance,
Last edited by AnotherMuggle; September 13th, 2013 at 07:42 AM.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!