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. Using extendes MFC-Dll for my control

Using extendes MFC-Dll for my control

Scheduled Pinned Locked Moved C / C++ / MFC
c++learning
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.
  • A Offline
    A Offline
    AnTri
    wrote on last edited by
    #1

    Hey, i've made some good controls and dialogs for me. From that time on, i'd copied all my files and resources to my new projects. Now I decided to make an DLL. So I started the project assistant and created a extended MFC-Dll and added my custem files and resources. So i build my DLL... OK, but now (after linking to my new projects) I have probleme with my resources. Is there any to way to split resources or better use separate resources (one resource for application, one for dll). Thank you for helping me....

    M 1 Reply Last reply
    0
    • A AnTri

      Hey, i've made some good controls and dialogs for me. From that time on, i'd copied all my files and resources to my new projects. Now I decided to make an DLL. So I started the project assistant and created a extended MFC-Dll and added my custem files and resources. So i build my DLL... OK, but now (after linking to my new projects) I have probleme with my resources. Is there any to way to split resources or better use separate resources (one resource for application, one for dll). Thank you for helping me....

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      AnTri wrote:

      I have probleme with my resources.

      What problems?

      AnTri wrote:

      Is there any to way to split resources or better use separate resources (one resource for application, one for dll).

      The resources are separate for the DLL and the EXE. It's mostly a matter of loading from the right module. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      A 1 Reply Last reply
      0
      • M Mark Salsbery

        AnTri wrote:

        I have probleme with my resources.

        What problems?

        AnTri wrote:

        Is there any to way to split resources or better use separate resources (one resource for application, one for dll).

        The resources are separate for the DLL and the EXE. It's mostly a matter of loading from the right module. Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        A Offline
        A Offline
        AnTri
        wrote on last edited by
        #3

        When I link my (control) dll I'll get a lot of compiler-warnings: resource already defined, duplicated resource ... e.g. in dll is a dialog with edit-control ID: IDC_EDIT1 = 1001 when I link the dll to my application e.g. Dialog with the same ID for edit-control I can't open the dialog! It seems that there is only one resource-list for the application an my dll!

        I 1 Reply Last reply
        0
        • A AnTri

          When I link my (control) dll I'll get a lot of compiler-warnings: resource already defined, duplicated resource ... e.g. in dll is a dialog with edit-control ID: IDC_EDIT1 = 1001 when I link the dll to my application e.g. Dialog with the same ID for edit-control I can't open the dialog! It seems that there is only one resource-list for the application an my dll!

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          MFC maintains a list of modules with resources, and loads them from wherever it can. The simple solution is to make sure your resource IDs don;t overlap. If you do a search for Anna Jane Metcalfe, she wrote an article with a utility to make reorganising resources much easier. If you can't find it on CP, go look at her site: www.riverblade.co.uk, and prod around there. It wasn't hard to find. Iain.

          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