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. Resource Strings vs. CStrings

Resource Strings vs. CStrings

Scheduled Pinned Locked Moved C / C++ / MFC
questionvisual-studiocomhelplearning
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.
  • A Offline
    A Offline
    Alexandru Savescu
    wrote on last edited by
    #1

    I have some messages that are dispalyed in my application (error messages, welcome messages). I was wodering what is the best way to define those strings: 1. in a resource file, or 2. define my own const CString object in a common header file. I would like to hear your pros and cons on both options. Thanks! Best regards, Alexandru Savescu P.S. Interested in art? Visit this!

    J 1 Reply Last reply
    0
    • A Alexandru Savescu

      I have some messages that are dispalyed in my application (error messages, welcome messages). I was wodering what is the best way to define those strings: 1. in a resource file, or 2. define my own const CString object in a common header file. I would like to hear your pros and cons on both options. Thanks! Best regards, Alexandru Savescu P.S. Interested in art? Visit this!

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      If you ever think of doing something like localisation, resources are the way to go (probably even a resource DLL). But if you are happy with one (or maybe very few, with different binaries) languages, you can probably stay with const strings in your application. Both are Unicode-ready, but when you choose english as your applications language, you will probably not need this. Just my 2 Euro-cents "My opinions may have changed, but not the fact that I am right." Found in the sig of Herbert Kaminski

      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