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 include extern DLL's as static Library into project?

How include extern DLL's as static Library into project?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionhelp
4 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
    LX
    wrote on last edited by
    #1

    Hi everybody, I want to include few external DLL files into my executable file as a static Library. Microsoft Visual C++ can do that with MFC,my question is: How can I do to insert external DLL's files? I hope any body can help me! Thanks aLx aLx

    J M K 3 Replies Last reply
    0
    • L LX

      Hi everybody, I want to include few external DLL files into my executable file as a static Library. Microsoft Visual C++ can do that with MFC,my question is: How can I do to insert external DLL's files? I hope any body can help me! Thanks aLx aLx

      J Offline
      J Offline
      John M Drescher
      wrote on last edited by
      #2

      @LX wrote:

      I want to include few external DLL files into my executable file as a static Library.

      That is not possible. John

      1 Reply Last reply
      0
      • L LX

        Hi everybody, I want to include few external DLL files into my executable file as a static Library. Microsoft Visual C++ can do that with MFC,my question is: How can I do to insert external DLL's files? I hope any body can help me! Thanks aLx aLx

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

        DLLs and static libraries are entirely different things. MFC does not do what you said, MFC just has both DLL and static LIB versions. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        1 Reply Last reply
        0
        • L LX

          Hi everybody, I want to include few external DLL files into my executable file as a static Library. Microsoft Visual C++ can do that with MFC,my question is: How can I do to insert external DLL's files? I hope any body can help me! Thanks aLx aLx

          K Offline
          K Offline
          Koushik Biswas
          wrote on last edited by
          #4

          OK, let the world be more "friendly" to this guy (or gal?)... If you want to do that with say MYDLL.DLL, then you must locate (or steal or beg or borrow or build) the .LIB file MYDLL.LIB. If you have the source code of MYDLL.DLL, then building the LIB file is a piece of cake. After you get the LIB file, link it statically by adding it to the Link tab of Project settings (do not forget to add its path to the Library path list in Tools --> Options --> Directories). If you do not have (or cannot get) the LIB file, you cannot do it. Koushik Biswas

          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