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

conversion

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    hi all, can u tell me how to convert a BSTR to char(i want to display the bstr value)

    L J R 3 Replies Last reply
    0
    • A Anonymous

      hi all, can u tell me how to convert a BSTR to char(i want to display the bstr value)

      L Offline
      L Offline
      Lakitu
      wrote on last edited by
      #2

      Use the OLE2T() macro.


      Look! They have the Internet on computers now! (Homer J. Simpson)

      1 Reply Last reply
      0
      • A Anonymous

        hi all, can u tell me how to convert a BSTR to char(i want to display the bstr value)

        J Offline
        J Offline
        jmkhael
        wrote on last edited by
        #3

        Or assign it to a CString, or use _bstr_t Papa Murex Co. while (TRUE) Papa.WillLove ( Bebe ) ;

        1 Reply Last reply
        0
        • A Anonymous

          hi all, can u tell me how to convert a BSTR to char(i want to display the bstr value)

          R Offline
          R Offline
          Rashid Thadha
          wrote on last edited by
          #4

          e.g BSTR bstrValue _bstr_t bstrTemp(bstrValue); CString sValue = (LPCTSTR)bstrTemp;

          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