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. USES_CONVERSION

USES_CONVERSION

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharphelpquestion
3 Posts 3 Posters 2 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.
  • J Offline
    J Offline
    John theKing
    wrote on last edited by
    #1

    Friends, I want to use USES_CONVERSION macro and A2W/W2A macros in my Console application using Visual C++ 6.0. Can anyone tell me that in which header file these macros are declared ?? I am doing same in Visual C++ .NET and including header file atlbase.h and my program works normally. But strange that whenever i include this header file in my Visual C++ 6.0 app, the compiler starts giving me errors in this headerfile. I am copying the first error below: VC98\ATL\INCLUDE\atlconv.h(125)error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *' This should be noted i want to make both programs i.e VC++ 6.0 sample and VC++ 7.0 sample as UNICODE apps, and i have latest platform SDK installed.

    J M 2 Replies Last reply
    0
    • J John theKing

      Friends, I want to use USES_CONVERSION macro and A2W/W2A macros in my Console application using Visual C++ 6.0. Can anyone tell me that in which header file these macros are declared ?? I am doing same in Visual C++ .NET and including header file atlbase.h and my program works normally. But strange that whenever i include this header file in my Visual C++ 6.0 app, the compiler starts giving me errors in this headerfile. I am copying the first error below: VC98\ATL\INCLUDE\atlconv.h(125)error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *' This should be noted i want to make both programs i.e VC++ 6.0 sample and VC++ 7.0 sample as UNICODE apps, and i have latest platform SDK installed.

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Have you defined both UNICODE and _UNICODE macros? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      1 Reply Last reply
      0
      • J John theKing

        Friends, I want to use USES_CONVERSION macro and A2W/W2A macros in my Console application using Visual C++ 6.0. Can anyone tell me that in which header file these macros are declared ?? I am doing same in Visual C++ .NET and including header file atlbase.h and my program works normally. But strange that whenever i include this header file in my Visual C++ 6.0 app, the compiler starts giving me errors in this headerfile. I am copying the first error below: VC98\ATL\INCLUDE\atlconv.h(125)error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *' This should be noted i want to make both programs i.e VC++ 6.0 sample and VC++ 7.0 sample as UNICODE apps, and i have latest platform SDK installed.

        M Offline
        M Offline
        Mihai Filimon
        wrote on last edited by
        #3

        USES_CONVERSION; BSTR b = T2OLE("blbla"); http://www.exontrol.com

        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