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 to load a File.rc with different name ??

How to load a File.rc with different name ??

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

    Hello, How can I load a file .RC in a VC project with a different name ?? I need to load another RC file (in execution time) to load all the strings of another language. Any idea ?? Thanks, Cris.

    D M 2 Replies Last reply
    0
    • C Cris

      Hello, How can I load a file .RC in a VC project with a different name ?? I need to load another RC file (in execution time) to load all the strings of another language. Any idea ?? Thanks, Cris.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Unless you have a reason not to, you can put all of the resources in the same .RC file. Just use the LANGUAGE statment in the .RC file.


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      C 1 Reply Last reply
      0
      • D David Crow

        Unless you have a reason not to, you can put all of the resources in the same .RC file. Just use the LANGUAGE statment in the .RC file.


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        C Offline
        C Offline
        Cris
        wrote on last edited by
        #3

        Ok, in this case I will have 2 String Tables (2 languages), right ?? And how can choose one String Table to load ?? []'s

        1 Reply Last reply
        0
        • C Cris

          Hello, How can I load a file .RC in a VC project with a different name ?? I need to load another RC file (in execution time) to load all the strings of another language. Any idea ?? Thanks, Cris.

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          You don't load RC files at runtime, the RC file is just the source (just as you don't run C++ code, you run compiled code). The resource-related APIs all take module handles, which indicates which module to load from. Check out LoadModule() and the resource API docs for more. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber Actual sign at the laundromat I go to: "No tinting or dying."

          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