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 change resource of exported class from a DLL?

How to change resource of exported class from a DLL?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++tutoriallearning
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.
  • J Offline
    J Offline
    jahfer
    wrote on last edited by
    #1

    Hi All I developed a MFC extension dll which has English resources in it. I want to incorporate French resource to this dll. I am using this dll in my main application. The resources loading from this dll should be controlled programatically. (ie, In English OS it should load French resource or vice versa) I have come across the following code /***********/ HINSTANCE = LoadLibrary("MyDll"); AxSetResourceHandle(hinstance); /***********/ But It is not working in dlls (Inside DllMain()). How can I do it dlls? regards Jafi.

    M 1 Reply Last reply
    0
    • J jahfer

      Hi All I developed a MFC extension dll which has English resources in it. I want to incorporate French resource to this dll. I am using this dll in my main application. The resources loading from this dll should be controlled programatically. (ie, In English OS it should load French resource or vice versa) I have come across the following code /***********/ HINSTANCE = LoadLibrary("MyDll"); AxSetResourceHandle(hinstance); /***********/ But It is not working in dlls (Inside DllMain()). How can I do it dlls? regards Jafi.

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

      You can't do much from DllMain(), and you certainly can't load other DLLs. Read the docs on DllMain(), they describe the restrictions. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Magnae clunes mihi placent, nec possum de hac re mentiri.

      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