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 can I use CString in a Win32 application ?

How can I use CString in a Win32 application ?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++comhelp
3 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.
  • D Offline
    D Offline
    dlhson
    wrote on last edited by
    #1

    I developed a program as a Win 32 application (non-MFC) But I find it very difficult to work with string without CString (MFC). Can I use this MFC class in my program without rewriting my program ? Can I include this MFC class like a normal class ? Help me ! Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com

    C B 2 Replies Last reply
    0
    • D dlhson

      I developed a program as a Win 32 application (non-MFC) But I find it very difficult to work with string without CString (MFC). Can I use this MFC class in my program without rewriting my program ? Can I include this MFC class like a normal class ? Help me ! Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      dlhson wrote: Can I use this MFC class in my program without rewriting my program ? no. but there are many classes available on this very site that do just about everything CString can do. or, you could use std::string. -c


      Cheap oil. It's worth it!

      Image Processing - just like mom used to make.

      1 Reply Last reply
      0
      • D dlhson

        I developed a program as a Win 32 application (non-MFC) But I find it very difficult to work with string without CString (MFC). Can I use this MFC class in my program without rewriting my program ? Can I include this MFC class like a normal class ? Help me ! Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com

        B Offline
        B Offline
        Bill Wilson
        wrote on last edited by
        #3

        Yes you can, you just need to include MFC support. Look up this topic in MSDN. Add MFC Support to an ATL Project Adding MFC support to a Win32 app is similar.

        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