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. VC++ - Including " in a text string without ending the string

VC++ - Including " in a text string without ending the string

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

    Hi All I am trying to include the inch symbol (ie " the same as a double quotation mark) in a function that requires a text string input between double quotation marks along the lines of: ? SysAllocStringByteLen("Some text with the inch symbol" and then end",44) How do I mark the " inch symbol so that it is not mistaken as the end of the text string Regards Jeremy

    R 1 Reply Last reply
    0
    • J JSadleir

      Hi All I am trying to include the inch symbol (ie " the same as a double quotation mark) in a function that requires a text string input between double quotation marks along the lines of: ? SysAllocStringByteLen("Some text with the inch symbol" and then end",44) How do I mark the " inch symbol so that it is not mistaken as the end of the text string Regards Jeremy

      R Offline
      R Offline
      Rama Krishna Vavilala
      wrote on last edited by
      #2

      SysAllocStringByteLen("Some text with the inch symbol\" and then end",44)

      J 1 Reply Last reply
      0
      • R Rama Krishna Vavilala

        SysAllocStringByteLen("Some text with the inch symbol\" and then end",44)

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

        Brilliant!! Many thanks for that!

        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