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. From .exe to .lib

From .exe to .lib

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionlounge
8 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.
  • S Offline
    S Offline
    safigh
    wrote on last edited by
    #1

    Hello all, I have a working BIG MFC project X. Now I want to create a new project Y(or another interface) that will use the older MFC project X as a library from which classes and methods are called. I changed the general properties of the X from .exe to .lib and Linked Y to X in the linker properties. The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this? Thank you very much. Regards

    D 1 Reply Last reply
    0
    • S safigh

      Hello all, I have a working BIG MFC project X. Now I want to create a new project Y(or another interface) that will use the older MFC project X as a library from which classes and methods are called. I changed the general properties of the X from .exe to .lib and Linked Y to X in the linker properties. The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this? Thank you very much. Regards

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

      safigh wrote:

      The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this?

      Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.


      "The largest fire starts but with the smallest spark." - David Crow

      "Judge not by the eye but by the heart." - Native American Proverb

      S 1 Reply Last reply
      0
      • D David Crow

        safigh wrote:

        The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this?

        Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.


        "The largest fire starts but with the smallest spark." - David Crow

        "Judge not by the eye but by the heart." - Native American Proverb

        S Offline
        S Offline
        safigh
        wrote on last edited by
        #3

        DavidCrow wrote:

        Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.

        Do you mean that I should creat a DLL project that link to these libraries and then put this DLL in X, thus X is linked to the libraries? How to create this DLL project and how to link it to X?

        D J 2 Replies Last reply
        0
        • S safigh

          DavidCrow wrote:

          Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.

          Do you mean that I should creat a DLL project that link to these libraries and then put this DLL in X, thus X is linked to the libraries? How to create this DLL project and how to link it to X?

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

          Notice the word "temporary" in my suggestion?

          safigh wrote:

          How to create this DLL project...

          Use MFC's AppWizard.


          "The largest fire starts but with the smallest spark." - David Crow

          "Judge not by the eye but by the heart." - Native American Proverb

          S 1 Reply Last reply
          0
          • D David Crow

            Notice the word "temporary" in my suggestion?

            safigh wrote:

            How to create this DLL project...

            Use MFC's AppWizard.


            "The largest fire starts but with the smallest spark." - David Crow

            "Judge not by the eye but by the heart." - Native American Proverb

            S Offline
            S Offline
            safigh
            wrote on last edited by
            #5

            I can't get you. This is complicated for me. I am a beginner. Can you explain in more details and easier steps?

            D 1 Reply Last reply
            0
            • S safigh

              I can't get you. This is complicated for me. I am a beginner. Can you explain in more details and easier steps?

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

              safigh wrote:

              Can you explain in more details and easier steps?

              It doesn't get any easier than what I've already provided. Since you have already created a "BIG MFC project," we must assume that you are at least somewhat familiar with the process. In any case, see here.


              "The largest fire starts but with the smallest spark." - David Crow

              "Judge not by the eye but by the heart." - Native American Proverb

              S 1 Reply Last reply
              0
              • S safigh

                DavidCrow wrote:

                Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.

                Do you mean that I should creat a DLL project that link to these libraries and then put this DLL in X, thus X is linked to the libraries? How to create this DLL project and how to link it to X?

                J Offline
                J Offline
                jalsa G
                wrote on last edited by
                #7

                hi, you can see this site www.functionx.com there you can find samples for creating dll samples venu

                1 Reply Last reply
                0
                • D David Crow

                  safigh wrote:

                  Can you explain in more details and easier steps?

                  It doesn't get any easier than what I've already provided. Since you have already created a "BIG MFC project," we must assume that you are at least somewhat familiar with the process. In any case, see here.


                  "The largest fire starts but with the smallest spark." - David Crow

                  "Judge not by the eye but by the heart." - Native American Proverb

                  S Offline
                  S Offline
                  safigh
                  wrote on last edited by
                  #8

                  Dont take the "BIG" word to that extent. It is big in core not in interface. I'll check the links and go back to u soon. Thanks anyway.

                  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