CString class in non-MFC static library
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Thread: CString class in non-MFC static library

Threaded View

  1. #1
    Join Date
    May 2006
    Location
    England
    Posts
    69

    CString class in non-MFC static library

    Hi All,

    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,
    AnotherMuggle.
    Last edited by AnotherMuggle; September 13th, 2013 at 08:42 AM. Reason: typo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center