Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. _L error

_L error

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++helpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Binayak
    wrote on last edited by
    #1

    I was trying to build a atl program in .net, I got this error error C3861: '_L': identifier not found, even with argument-dependent lookup on the line if( lstrcmpiW(szName, _L("Output")) == 0 ) .............. What should I use instead of _L ()?

    L J D 3 Replies Last reply
    0
    • B Binayak

      I was trying to build a atl program in .net, I got this error error C3861: '_L': identifier not found, even with argument-dependent lookup on the line if( lstrcmpiW(szName, _L("Output")) == 0 ) .............. What should I use instead of _L ()?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Binayak wrote: _L ()? _T()? Artificial intelligence is no match for natural stupidity.

      1 Reply Last reply
      0
      • B Binayak

        I was trying to build a atl program in .net, I got this error error C3861: '_L': identifier not found, even with argument-dependent lookup on the line if( lstrcmpiW(szName, _L("Output")) == 0 ) .............. What should I use instead of _L ()?

        J Offline
        J Offline
        Jorgen Sigvardsson
        wrote on last edited by
        #3

        "string" = ascii 8-bit character string L"string" = unicode 16-bit character string #ifdef _UNICODE _T("string") = L"string" = unicode 16-bit character string #else _T("string") = "string" = ascii 8-bit character string #endif -- He just smiled and gave me a vegemite sandwich.

        1 Reply Last reply
        0
        • B Binayak

          I was trying to build a atl program in .net, I got this error error C3861: '_L': identifier not found, even with argument-dependent lookup on the line if( lstrcmpiW(szName, _L("Output")) == 0 ) .............. What should I use instead of _L ()?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Shouldn't it be:

          if (lstrcmpiW(szName, L"Output") == 0)

          or

          if (lstrcmpiW(szName, _T("Output")) == 0)


          A rich person is not the one who has the most, but the one that needs the least.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups