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. String Table MFC vc++

String Table MFC vc++

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

    I have some hard coded strings which I wanted to add to the String Table and load that string from the string table. From the resource view, i go to the string table and gave ID,value and caption there. and tries to load by doing this.

    CString temp;
    temp.LoadString(IDS_STRING1);

    But its giving me IDS_STRING1 is undefined. What is the correct way to do this? Thanks in advance.

    M 1 Reply Last reply
    0
    • M Member_14575556

      I have some hard coded strings which I wanted to add to the String Table and load that string from the string table. From the resource view, i go to the string table and gave ID,value and caption there. and tries to load by doing this.

      CString temp;
      temp.LoadString(IDS_STRING1);

      But its giving me IDS_STRING1 is undefined. What is the correct way to do this? Thanks in advance.

      M Offline
      M Offline
      Member_14575556
      wrote on last edited by
      #2

      I found what I did wrong. Thanks :)

      M 1 Reply Last reply
      0
      • M Member_14575556

        I found what I did wrong. Thanks :)

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        what was wrong ? how did you fix it ?

        I'd rather be phishing!

        M 1 Reply Last reply
        0
        • M Maximilien

          what was wrong ? how did you fix it ?

          I'd rather be phishing!

          M Offline
          M Offline
          Member_14575556
          wrote on last edited by
          #4

          I gave the value which is already there.. I gave a different number which is not already used and that solve my problem.

          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