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. I HATE ADO - newbie

I HATE ADO - newbie

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 2 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
    antonaras
    wrote on last edited by
    #1

    Hi again guys This ADO is very frastrating as long as i find out one thing and i try to move on there comes other problems. This time i have a problem with _bstr_t i need to give the value of string token to _bstr_t strName i tryed _bstr_t= token; but ofcorse i get incompatible error:: error C2440: 'initializing' : cannot convert from 'class std::basic_string,class std::allocator >' to 'class _bstr Any other way around Appreciate

    V 1 Reply Last reply
    0
    • A antonaras

      Hi again guys This ADO is very frastrating as long as i find out one thing and i try to move on there comes other problems. This time i have a problem with _bstr_t i need to give the value of string token to _bstr_t strName i tryed _bstr_t= token; but ofcorse i get incompatible error:: error C2440: 'initializing' : cannot convert from 'class std::basic_string,class std::allocator >' to 'class _bstr Any other way around Appreciate

      V Offline
      V Offline
      Viorel
      wrote on last edited by
      #2

      Token seems to be of type std::string, so try this: _bstr_t s = token.c_str();

      A 1 Reply Last reply
      0
      • V Viorel

        Token seems to be of type std::string, so try this: _bstr_t s = token.c_str();

        A Offline
        A Offline
        antonaras
        wrote on last edited by
        #3

        YEAH is Working Thanks men I'm getting so close Thanks Thanks Thanks:-D:-D

        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