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. How to analyse a string type of CString?

How to analyse a string type of CString?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
2 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.
  • E Offline
    E Offline
    ebinaini
    wrote on last edited by
    #1

    HI~~ i have a Q about analyse a string type of CString. the string was <伯 YはY><夷 YいY><叔 YしゆY><斉 YせいY><餓 OウO K哀K>于<首 YしゆY><陽 YやうY>之<下 YもとY O二O K亜K M。M> i want get the CStringList list; list[0]=伯; list[1]=夷; list[2]=叔; ..... code like this: while(!ado.pRtr->adoEOF) { var=ado.pRtr->GetCollect("SHOMON_BUN"); m_Text=(LPCSTR)_bstr_t(var); int len=m_Text.GetLength(); while(!len==0) { //i don't know how can i do } list.AddTail(m_Text); ado.pRtr->MoveNext(); } thanks in advance very much~~!:confused::confused::confused::confused: nothing

    D 1 Reply Last reply
    0
    • E ebinaini

      HI~~ i have a Q about analyse a string type of CString. the string was <伯 YはY><夷 YいY><叔 YしゆY><斉 YせいY><餓 OウO K哀K>于<首 YしゆY><陽 YやうY>之<下 YもとY O二O K亜K M。M> i want get the CStringList list; list[0]=伯; list[1]=夷; list[2]=叔; ..... code like this: while(!ado.pRtr->adoEOF) { var=ado.pRtr->GetCollect("SHOMON_BUN"); m_Text=(LPCSTR)_bstr_t(var); int len=m_Text.GetLength(); while(!len==0) { //i don't know how can i do } list.AddTail(m_Text); ado.pRtr->MoveNext(); } thanks in advance very much~~!:confused::confused::confused::confused: nothing

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

      ebinaini wrote: i have a Q about analyse a string type of CString. the string was... What is it that you are wanting to analyze? ebinaini wrote: while(!len==0) What are you trying to check for here?


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      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