CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Arjay

Search: Search took 0.08 seconds.

  1. Re: How to assign CString to wstring UNICODE compilation

    Here's the way I look at it. When I program for Windows, I wrap any string or char literals in _T() and I never have to worry about it.
  2. Re: How to assign CString to wstring UNICODE compilation

    It depends how temp is defined. If defined as char[], then you won't get errors. If defined as wchar_t[], then you should. I find developers have the least amount of trouble when coding in windows...
  3. Re: How to assign CString to wstring UNICODE compilation

    Yes.



    if( temp[pos] == _T('p') || temp[pos] == _T('P') )
    {

    }
  4. Re: How to assign CString to wstring UNICODE compilation

    While you *can* have both ANSI and UNICODE in a single program, I'd recommened that you compile your program for all UNICODE. If you have data coming in (or going out) that's then convert the data...
  5. Re: How to assign CString to wstring UNICODE compilation

    This really is more of the VC and windows environment than MFC. The bottom line is that if you use _T("") around string literals, it will work for both. If you use "" or L"", you could run into...
  6. Re: How to assign CString to wstring UNICODE compilation

    You can also use the conversion macros.




    USES_CONVERSION;

    std::wstring val
    CString src
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured