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. Finding CRLF or other Characters in char

Finding CRLF or other Characters in char

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearning
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.
  • S Offline
    S Offline
    shibble
    wrote on last edited by
    #1

    Hi, iam a beginner to visual c++ and i think i have a simple question: i want to search a character in a char variable. like switch (&mychar) { case CHR(13): MessageBox("found"); default: MessageBox("Not Found!"); } In VB i could compare like if mychar = Chr(13) then ... Can anybody call me the functionname of Chr or Ord or ASC in MFC c++ 6.0? Thx alot!! Bye

    U 1 Reply Last reply
    0
    • S shibble

      Hi, iam a beginner to visual c++ and i think i have a simple question: i want to search a character in a char variable. like switch (&mychar) { case CHR(13): MessageBox("found"); default: MessageBox("Not Found!"); } In VB i could compare like if mychar = Chr(13) then ... Can anybody call me the functionname of Chr or Ord or ASC in MFC c++ 6.0? Thx alot!! Bye

      U Offline
      U Offline
      User 307386
      wrote on last edited by
      #2

      Just use case 13: // code char is numerical type in C++ Igor Green http://www.grigsoft.com Compare It! + Synchronize It! : Files and folders comparison never was easier!

      S 1 Reply Last reply
      0
      • U User 307386

        Just use case 13: // code char is numerical type in C++ Igor Green http://www.grigsoft.com Compare It! + Synchronize It! : Files and folders comparison never was easier!

        S Offline
        S Offline
        shibble
        wrote on last edited by
        #3

        Thx alot!!

        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