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 resource of static librray from exe.?

How to load resource of static librray from exe.?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionlearning
5 Posts 4 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.
  • L Offline
    L Offline
    lavate malllik
    wrote on last edited by
    #1

    how to invoke the dilaog from exe ? This dialog is created in static library. mallikarjun

    P R O 3 Replies Last reply
    0
    • L lavate malllik

      how to invoke the dilaog from exe ? This dialog is created in static library. mallikarjun

      P Offline
      P Offline
      Paresh Chitte
      wrote on last edited by
      #2

      Use AfxLoadLibrary and AfxSetResourceHandle APIs. HINSTANCE m_hPrevRes; HINSTANCE m_hDllInstance; m_hDllInstance = AfxLoadLibrary("Your Resource file path"); AfxSetResourceHandle(m_hDllInstance); Regards, Paresh.

      R 1 Reply Last reply
      0
      • L lavate malllik

        how to invoke the dilaog from exe ? This dialog is created in static library. mallikarjun

        R Offline
        R Offline
        Rajkumar R
        wrote on last edited by
        #3

        Have you tried some thing as of now. I think dialog can be created normally as the module instance is same.

        1 Reply Last reply
        0
        • P Paresh Chitte

          Use AfxLoadLibrary and AfxSetResourceHandle APIs. HINSTANCE m_hPrevRes; HINSTANCE m_hDllInstance; m_hDllInstance = AfxLoadLibrary("Your Resource file path"); AfxSetResourceHandle(m_hDllInstance); Regards, Paresh.

          R Offline
          R Offline
          Rajkumar R
          wrote on last edited by
          #4

          it's static library

          1 Reply Last reply
          0
          • L lavate malllik

            how to invoke the dilaog from exe ? This dialog is created in static library. mallikarjun

            O Offline
            O Offline
            Ozer Karaagac
            wrote on last edited by
            #5

            Static libraries do not contain resources, you have to link resource files (.rc or .res) along with that library.

            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