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. Data Types

Data Types

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
3 Posts 3 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.
  • T Offline
    T Offline
    tasumisra
    wrote on last edited by
    #1

    Hi all, Can anybody explain me what is the meaning of all these "TCHAR ,BSTR and _bstr_t,_variant_t" and why and when we are using this in vc++... Thanks vikas da

    vikas da

    A K 2 Replies Last reply
    0
    • T tasumisra

      Hi all, Can anybody explain me what is the meaning of all these "TCHAR ,BSTR and _bstr_t,_variant_t" and why and when we are using this in vc++... Thanks vikas da

      vikas da

      A Offline
      A Offline
      aatul
      wrote on last edited by
      #2

      TCHAR is windows datatype, it will get converted to char or wchar depending on #define BSTR is COM data type and is unicode compliant, it will always use the string in unicode format. _bstr_t is also com data type and it encapsulates the BSTR data type. _variant_t is VARIANT data type and can accept contain any datatype defined in union it has. Atul

      1 Reply Last reply
      0
      • T tasumisra

        Hi all, Can anybody explain me what is the meaning of all these "TCHAR ,BSTR and _bstr_t,_variant_t" and why and when we are using this in vc++... Thanks vikas da

        vikas da

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        That is Really a case for "Read The Fine Manual". => http://msdn2.microsoft.com

        Greetings from Germany

        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