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. Strings [SOLVED]

Strings [SOLVED]

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiohelp
7 Posts 3 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.
  • G Offline
    G Offline
    goldenrose9
    wrote on last edited by
    #1

    1. Is it legal to use

    #include

    in a win32 native Windows Application. 2. Does using atlstr.h in Win32 Native Windows Application causes any kind of error. :confused: Source Found on Internet: Starting VS 2003, you can use CString in non-MFC applications by including header atlstr.h:

    Some Day I Will Prove MySelf :: GOLD

    S CPalliniC 2 Replies Last reply
    0
    • G goldenrose9

      1. Is it legal to use

      #include

      in a win32 native Windows Application. 2. Does using atlstr.h in Win32 Native Windows Application causes any kind of error. :confused: Source Found on Internet: Starting VS 2003, you can use CString in non-MFC applications by including header atlstr.h:

      Some Day I Will Prove MySelf :: GOLD

      S Offline
      S Offline
      ShilpiP
      wrote on last edited by
      #2

      Yes you can use it. 1) If you create an application than one option for ATL i.e. "Add common header files for ATL" is displayed.If you select these than it automatically add this header for you. or 2) You can use basic_string of STL, std::string, std::wstring as per your requirement.

      I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)

      G 1 Reply Last reply
      0
      • G goldenrose9

        1. Is it legal to use

        #include

        in a win32 native Windows Application. 2. Does using atlstr.h in Win32 Native Windows Application causes any kind of error. :confused: Source Found on Internet: Starting VS 2003, you can use CString in non-MFC applications by including header atlstr.h:

        Some Day I Will Prove MySelf :: GOLD

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Indeed you may use CString in a Win32 application. However std::string might be a valid alternative. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • S ShilpiP

          Yes you can use it. 1) If you create an application than one option for ATL i.e. "Add common header files for ATL" is displayed.If you select these than it automatically add this header for you. or 2) You can use basic_string of STL, std::string, std::wstring as per your requirement.

          I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)

          G Offline
          G Offline
          goldenrose9
          wrote on last edited by
          #4

          :thumbsup: do std::wstring has trim function as CString have. (Trim, LTrim, RTrim )

          Some Day I Will Prove MySelf :: GOLD

          S 1 Reply Last reply
          0
          • G goldenrose9

            :thumbsup: do std::wstring has trim function as CString have. (Trim, LTrim, RTrim )

            Some Day I Will Prove MySelf :: GOLD

            S Offline
            S Offline
            ShilpiP
            wrote on last edited by
            #5

            No there is no built in functionality for trim in basic_string but you can make a function of it. Search on Google, you will get the better result First link of google that have solution is : Click here ->

            I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)

            G 1 Reply Last reply
            0
            • S ShilpiP

              No there is no built in functionality for trim in basic_string but you can make a function of it. Search on Google, you will get the better result First link of google that have solution is : Click here ->

              I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)

              G Offline
              G Offline
              goldenrose9
              wrote on last edited by
              #6

              :thumbsup: thanx nice :)

              Some Day I Will Prove MySelf :: GOLD

              S 1 Reply Last reply
              0
              • G goldenrose9

                :thumbsup: thanx nice :)

                Some Day I Will Prove MySelf :: GOLD

                S Offline
                S Offline
                ShilpiP
                wrote on last edited by
                #7

                WC :)

                I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)

                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