CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Posts
    10

    Can someone explain L"

    What is L" ?

    Is it some kind of function to convert text?

    I am new to VC++, is it VC++ specifics?


  2. #2
    Join Date
    Oct 1999
    Posts
    12

    Re: Can someone explain L"

    This is a macro which according Micorsoft documenation does the following:

    L (converts following character or string to its Unicode counterpart)




  3. #3
    Join Date
    Sep 1999
    Posts
    10

    Re: Can someone explain L"

    Is this ANSI standard?


  4. #4
    Join Date
    Oct 1999
    Posts
    12

    Re: Can someone explain L"

    Midas,

    I'm assuming your seeing the use of L("some string") is in code samples for Microsoft Visual Studio (you'll see this alot in ADO samples). If not then my response is not the answer to your question. If so then this Macro is used to provide support from the same code base for single-byte, multi-byte, and unicode. The following snippet is directly from Microsoft documenation:

    To simplify transporting code for international use, the Microsoft run-time library provides Microsoft-specific “generic-text” mappings for many data types, routines, and other objects. You can use these mappings, which are defined in TCHAR.H, to write generic code that can be compiled for single byte, multibyte, or Unicode, depending on a manifest constant you define using a #define statement. Generic-text mappings are Microsoft extensions that are not ANSI compatible.

    So as you can see this has nothing to do with the C++ language at all.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured